|
catch the errorlevel of the command:
[code]
...
/path/to/somecommand ; RC=$?
if [ $RC -eq 0 ] ; then
print - "everything worked out fine"
else
print - "something screwed up"
fi
[code]
The errorlevel is set anew for every command issued, so be sure to get it as soon as the program in question is finished.
bakunin
Last edited by RTM; 09-02-2005 at 09:50 AM..
|