goto in linux shell script
Hi,
I am using Red Hat linux 2.4.21-4.EL.
I am trying to write a bash shell script to start an application.
If the application fails it will exit with certain exit code.
After checking the exit code, can I use 'goto' to jump to label in the script ?
for example:
<appname>
if [ $? -eq -2] goto label.
.
.
.
label:
..
..
thanks,
Sabliny
|