Solved what does '$?' variable mean in unix scripts

August 5, 2010 at 11:28:26
Specs: Windows XP
I am trying to understand a script. In this script it uses '$?' as a variable to assign a value to another variable. "variable_name = $?".

Can anyone please tel me what exactly it does??

Thanks in advance


See More: what does $? variable mean in unix scripts

Report •

#1
August 5, 2010 at 11:32:38
✔ Best Answer
The return code from the last command issued.
Read this:
http://lowfatlinux.com/linux-script...

The original poster should always write the last response !!!
Let us know, if the problem is solved !!!


Report •

#2
August 5, 2010 at 11:57:34
Got it. Thanks.. :) :)

Report •

#3
August 5, 2010 at 16:51:55
You are welcome.

The original poster should always write the last response !!!
Let us know, if the problem is solved !!!


Report •
Related Solutions


Ask Question