LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Exit codes (https://www.linuxquestions.org/questions/linux-newbie-8/exit-codes-4175480203/)

svlay 10-09-2013 05:00 PM

Exit codes
 
I'd like to know, is there any possible way to finish my programm with exit code more than 255, and get it by echo $?. Thanks.

chrism01 10-09-2013 05:11 PM

If you're talking about shell eg bash, its limited to 8 bits, so no.
You can however get it to print or echo out anything you want and have the caller parse that.

svlay 10-09-2013 05:13 PM

That's all i needed to know.


All times are GMT -5. The time now is 02:25 AM.