![]() |
|
|
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 |
| Simple or maybe not.. | marringi | UNIX for Dummies Questions & Answers | 1 | 04-01-2008 02:49 PM |
| Simple to you not simple to me pattern matchin help | aleks001 | Shell Programming and Scripting | 0 | 07-22-2007 11:06 PM |
| Simple C question... Hopefully it's simple | Xeed | High Level Programming | 6 | 12-15-2006 02:29 PM |
| simple one | kekanap | UNIX for Advanced & Expert Users | 2 | 11-01-2006 07:10 AM |
| Ok simple question for simple knowledge... | Corrail | UNIX for Dummies Questions & Answers | 1 | 11-28-2005 01:03 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
simple help
hi everyone below is my shell script,
![]() i need help from someone. #!/bin/ksh #show some useful info date echo Good morning $USER cal PROGLIST=`cat process.csv` for PROG in $PROGLIST do PRONAME=`echo "$LINE" | cut -d";" -f2` PROEXE=`echo "$LINE" | cut -d";" -f1` RUNNINGPROGCOUNT=`ps -ef | grep "$PROG" | wc -l` echo $RUNNINGPROGCOUNT #check the program is running if [ ${RUNNINGPROGCOUNT} -eq 0 ]; then echo $PROEXE #run the program $PROEXE echo `date` Restart $PROEXE fi done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|