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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-31-2010, 05:46 PM
|
#1
|
LQ Newbie
Registered: Jan 2010
Posts: 16
Rep:
|
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.
|
|
|
01-31-2010, 06:17 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,599
|
Quote:
Originally Posted by srini406
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...
|
|
|
01-31-2010, 06:53 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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 10:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|