LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2010, 05:46 PM   #1
srini406
LQ Newbie
 
Registered: Jan 2010
Posts: 16

Rep: Reputation: 0
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

Last edited by srini406; 01-31-2010 at 05:47 PM.
 
Old 01-31-2010, 06:17 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,599

Rep: Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138Reputation: 8138
Quote:
Originally Posted by srini406 View Post
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...
 
Old 01-31-2010, 06:53 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
--
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Process management and process control cll975dll General 1 09-04-2009 03:37 PM
Question regarding process management misbahuddin Linux - Software 2 12-05-2005 10:06 AM
Process Management Jose Muņiz General 4 10-12-2003 08:14 AM
Process management, bg, fg, CNTL-Z markf424 Linux - Software 3 07-24-2003 04:19 AM
process management nagna Linux - General 1 11-10-2001 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration