Hi
I've got a bit of code I want to use to create db dumps from a CRON :
$commande = $cmd_mysql." --host=$db_server --user=$db_username --password=$db_password -C -Q -e --default-character-set=$db_charset --single-transaction $db_name > $archive_SQL ";
$CR_exec = system($commande, $retval);
$mess .= "CR_exec = ".$retval."\n";
the sql file is saved to the server and I'm sent a message by mail. This all works fine but the line
$mess .= "CR_exec = ".$retval."\n";
outputs "CR_exec = 0" if the dump is successful and "CR_exec = 2" if I put in the wrong password so there seems to be more than just 1/0 returned
has anyone got a list of these return values and what they mean ? I had a look in the manual and it isn't in the page about system()
thanks