![]() |
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 |
| Aite Group Finds Huge Gains for CEP | iBot | Complex Event Processing RSS News | 0 | 02-06-2008 11:50 AM |
| Survey finds Windows losing ground with developers - Computerworld New Zealand | iBot | UNIX and Linux RSS News | 0 | 07-09-2007 08:40 AM |
| SETI Finds Stolen Laptop | Perderabo | News, Links, Events and Announcements | 2 | 04-05-2007 11:14 PM |
| fixing the error message when grep doesn't finds the pattern. | silver123 | UNIX for Dummies Questions & Answers | 1 | 03-03-2006 05:59 AM |
| Appending to filename a string of text grep finds | HLee1981 | Shell Programming and Scripting | 3 | 09-06-2005 03:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 05:40 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|