![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Aite Group Finds Huge Gains for CEP | iBot | Complex Event Processing RSS News | 0 | 02-06-2008 07:50 AM |
| Survey finds Windows losing ground with developers - Computerworld New Zealand | iBot | UNIX and Linux RSS News | 0 | 07-09-2007 04:40 AM |
| SETI Finds Stolen Laptop | Perderabo | News, Links, Events and Announcements | 2 | 04-05-2007 07:14 PM |
| fixing the error message when grep doesn't finds the pattern. | silver123 | UNIX for Dummies Questions & Answers | 1 | 03-03-2006 01:59 AM |
| Appending to filename a string of text grep finds | HLee1981 | Shell Programming and Scripting | 3 | 09-06-2005 11:44 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
I have problems executing a script in ksh with this script named process.sh: Code:
ps -ef | grep process.sh | grep -v grep | wc -l | read a if [ $a -gt 1 ] then echo "The script is running" exit 0 fi message "The script is running", when I think it's impossible. The reason that I write "wc -l|read a" is that the count returns 1 because the "ps" is executed in the same script. My idea is that nobody execute 2 times the same script, only on time. Is something wrong? Thanks in advance. added code tags for readability --oombera Last edited by oombera; 02-19-2004 at 01:40 PM. |
| Forum Sponsor | ||
|
|