LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   process management (https://www.linuxquestions.org/questions/linux-newbie-8/process-management-786056/)

srini406 01-31-2010 05:46 PM

process management
 
hi all
i am running a perl program in rhel5,when i restart the system and wanted to start the program again, it tells that process is already running,but i could not see even with
ps -ef |grep program.pl
and i tried
ps -aux |grep program.pl

i could not get any process running with that name.Again renamed the prog and tried still same repeated.plz share the answer if anybody knows?

thanks and regards,


srini

TB0ne 01-31-2010 06:17 PM

Quote:

Originally Posted by srini406 (Post 3847620)
hi all
i am running a perl program in rhel5,when i restart the system and wanted to start the program again, it tells that process is already running,but i could not see even with
ps -ef |grep program.pl
and i tried
ps -aux |grep program.pl

i could not get any process running with that name.Again renamed the prog and tried still same repeated.plz share the answer if anybody knows?

It would help if you told us what the program IS, what it does, etc. Can't guess as to what it's doing when we don't know, and you don't provide any useful information.

If this is something you wrote, tell us what it does, and post the relevant portions of the code. Tell us what process(es) it starts, and what it's trying to do. Could be it's just detecting a stale lock or PID file...

Tinkster 01-31-2010 06:53 PM

What TB0ne said ...

On top of that, if you CAN'T see any perl process running yet the
"program" complains that it's already running ... there's always a
chance that it maintains status via some file, and that the file
didn't get removed when the program went away (e.g., it was kill9ed
and didn't get a chance to clean up).


Cheers,
Tink
--


All times are GMT -5. The time now is 01:19 AM.