![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to print parent process name | mahendramahendr | Shell Programming and Scripting | 3 | 05-23-2008 08:59 AM |
| Who is the parent of a killed process ? | Puntino | UNIX for Dummies Questions & Answers | 6 | 05-13-2008 05:50 AM |
| Can a child process return a specific value to a parent process ? | Ametis1970 | High Level Programming | 8 | 04-10-2008 12:22 AM |
| how to find the chid process id from given parent process id | guhas | Shell Programming and Scripting | 3 | 10-13-2005 09:13 AM |
| identify parent process in ps? | MizzGail | UNIX for Dummies Questions & Answers | 6 | 07-03-2002 03:37 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hello,
I'm running one script every night and that's kick off through cron jobs. Inside the script i'm checking whether my script is already running or not. I'm using following command to check whether is running or not. ps -eaf | grep "test_PID.ksh" | grep -v "grep test_PID.ksh" | wc -l sometime it gives me 2 process or 3 process Output: user 15243 15203 0 12:00:01 ? 0:00 /usr/bin/ksh /usr/local/my/bin/test_PID.ksh user 15203 254 0 12:00:01 ? 0:00 sh -c /usr/local/my/bin/test_PID.ksh Why am i seeing two process for one job. How can i get only parent process not child process. Thank you for your helps in adv. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|