![]() |
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 |
| 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 |
| Urgent : Help required | V3l0 | AIX | 2 | 01-11-2008 11:37 AM |
| Urgent help required | umanglalani | Shell Programming and Scripting | 1 | 04-12-2007 03:24 AM |
| Urgent Help required | rahul26 | UNIX for Dummies Questions & Answers | 1 | 08-16-2006 01:23 PM |
| Urgent help required with uname() | rm1 | High Level Programming | 2 | 02-23-2005 10:18 PM |
| C programming - Urgent help required | kkumar1975 | High Level Programming | 2 | 04-08-2002 07:36 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi All,
I am new to unix , Please help me regarding the below issue . my application's main pragram in "a.sh" and one upstream application sending a file daily via connect direct and then calling the script "a.sh" . But the condition in our apll. is no two thread can't run at a time. so there is a validation in "a.sh" but some times it showing the error "one thread running" but when i checked with ps-ef command..then it not satisfying the below condition . Below is the code : Code:
PROCESS=`ps -ef | grep "/appl/a.sh" | grep -v "grep" | wc -l` if [ $PROCESS -gt 2 ] then echo " ERROR:- One thread is running " exit 1 fi Please help me . Thanks in advance Last edited by DukeNuke2; 04-22-2009 at 03:47 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|