![]() |
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 !! |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Get pid
Hello people,
This question might seem to be a little naive but here it goes: I want to know the PID of a script that is running in the background. eg: There is a script called Data_Downloader.sh I am using the command: ps -ef | grep Data_Downloader.sh But I am getting the output as wrkarea 18524 9063 0 15:46:41 pts/4 0:00 grep Data_Downlaoder.sh Thanks in advance. |
|
||||
|
Ok guys here is the latest update !!!
i'm running the script like this: ./Data_Downloader.sh & i am doing ps -ef | grep Data_Downloader.sh | grep -v grep but as usual with no luck at all!!! I also tried it with ps -ef | grep Data_Downloader.sh as stated earlier but with no luck. There is a sleep time of 60 secs now in the script and i beleive my typing speed is good enough to get me the results!!! |
|
||||
|
Is this because of the sleep time that is there? Does ps -ef list the processes that are sleeping because the manual says that it lists all the 'active' processes.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|