![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| URL call from SHELL script | chengwei | Shell Programming and Scripting | 37 | 04-15-2009 09:52 PM |
| how to execute a batch script from shell script | lakshmis10 | Shell Programming and Scripting | 1 | 10-17-2007 12:43 PM |
| how can a call shell script from pl/sql | rajesh.P | UNIX for Dummies Questions & Answers | 0 | 09-14-2007 02:42 AM |
| How to call a perl script from a shell script | anumkoshy | Shell Programming and Scripting | 2 | 08-30-2007 04:23 AM |
| Have a shell script call another shell script and exit | heprox | Shell Programming and Scripting | 2 | 11-20-2006 08:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi ,
I have 4 shell scripts a.ksh b.ksh -> depends on a.ksh success -> log into b.log c.ksh -> depends on b.ksh success -> log into c.log d.ksh -> depends on c.ksh success -> log into d.log I will have to write main.ksh ( execute a.ksh , log into a.log if a.ksh= success, execute b.ksh , log into b.log ,else exit if b.ksh= success, execute c.ksh , log into c.log ,else exit if c.ksh= success, execute d.ksh , log into d.log ,else exit ) |
|
||||
|
No magic here
Code:
#!/bin/ksh a.ksh if test "$?" != "0"; then exit 1; fi b.ksh >b.log if test "$?" != "0"; then exit 1; fi c.ksh >c.log if test "$?" != "0"; then exit 1; fi d.ksh >d.log |
| Sponsored Links | ||
|
|