![]() |
|
|
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 |
| Whi I'm getting control-M's | padpa | UNIX for Dummies Questions & Answers | 14 | 12-13-2007 07:18 AM |
| Fan control | Timmy66 | BSD | 1 | 08-02-2007 10:59 AM |
| New to Control-M | oraclenerd | UNIX for Advanced & Expert Users | 5 | 05-18-2006 11:21 AM |
| Removing control-Ms (^M) | djkane | Shell Programming and Scripting | 6 | 03-06-2006 10:48 AM |
| Control the telnet | ust | Shell Programming and Scripting | 0 | 02-09-2006 11:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Job control
Hello,
What is the best way to control the running of scripts? For example, i have a k1.ksh script java pgm that checks to make sure that the file counts in a particular directory are equal to a total file count value in a control file updated from my PC. If i run this k1.ksh script and the total counts are equal, what would be the best way to kick off the k2.ksh script to execute a database update? Should i use a kshell language and say put is something like "if [.......] then...." in the script or is there a better way to determine when to kick off k2.ksh? Thanks very much for any insights on this! BobK |
|
||||
|
Quote:
Code:
ksh ./k1.sh
if [ $? -ne 0 ] ; then
TestRunResult=fail
return 1
else
TestRunResult=pass
ksh ./k2.sh
fi
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|