I've written a script for my workplace to replace the old command line login with a web interface one. The meat of the script is:
exec ("ssh -l $username $hostname $password $script), $array, $return_code);
What determines the value of $return_code? Is it the Unix cluster i'm loggin into or PHP? Whichever it is how do i go about finding what the code means? It kicks back 255, which must be a failed code because i can't possible succeed in doing this from my current location based on the way in which $script is written.
Thanks in advance.
exec ("ssh -l $username $hostname $password $script), $array, $return_code);
What determines the value of $return_code? Is it the Unix cluster i'm loggin into or PHP? Whichever it is how do i go about finding what the code means? It kicks back 255, which must be a failed code because i can't possible succeed in doing this from my current location based on the way in which $script is written.
Thanks in advance.