Sponsored Content
Full Discussion: A little help please
Top Forums Shell Programming and Scripting A little help please Post 302145577 by porter on Wednesday 14th of November 2007 04:41:37 PM
Old 11-14-2007
$? is a variable that holds the return code of the last command.

Code:
echo $?

also

$$ is a variable that holds the current process id
$! is a variable that holds the pid of a process launched asynchronously
$0 holds the current script name
$1 ..... hold each argument from the command line
$@ holds all the command line arguments
 
All times are GMT -4. The time now is 01:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy