Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You want to check the exit code of the mysql insert before continuing, it's $? in bash. (basically a loop with an exit if $? != 0) More info on exit codes: http://tldp.org/LDP/abs/html/exit-status.html And bash scripting: http://www.tldp.org/LDP/abs/html/


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: