![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Goto last visted directory | prasanth_babu | SUN Solaris | 6 | 08-11-2008 04:17 AM |
| Stuck after typing goto | rairey | UNIX for Dummies Questions & Answers | 2 | 09-20-2007 02:19 PM |
| goto statement | Krrishv | Shell Programming and Scripting | 5 | 02-21-2007 07:36 AM |
| Use of GOTO statement in scripts | vikasduhan | Shell Programming and Scripting | 7 | 02-02-2006 12:50 PM |
| Unix version of gosub or goto?? | gozer13 | Shell Programming and Scripting | 3 | 02-03-2005 11:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
can someone shed some light on how I can write my own goto statement. I know it's generally not a good idea to use goto but in this circumstances, I think goto would be efficient. I have a driver script (driverjob.sh) that calls several jobs, eg. job1 job2 job3 job4 job5 if job3 fails, the driver script will write the name of the job to a log file and stop executing. After the error in job3 is fixed, if I rerun driverjob.sh, I would like the driver script to read from the log file the name of the failed job and process job3 onwards, thus bypassing job1 and job2. If there is no goto command, the only way I can think of is to use if then else statement and check the status of each job. Any suggestions? thanks. geraldine |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|