RE: Creating PID file
- From: MBarnes@xxxxxxxxxxxx (Michael Barnes)
- Date: Sat, 26 Apr 2008 23:49:23 -0700
My apologies. I know this is a cross-platform group, and that is fine. However, if you are unable to understand simple Linux terminology, then it is doubtful that you can help answer my question. If the description is nonsense to you, then please don't waste your or my time in an apparent slam on my choice of operating systems. If your reply represents the general attitude of this list, then it looks like I've come to the wrong place for assistance.
But, to simplify my request, a pid is a process id. In Linux, the command 'ps' will give a listing of process IDs.
I need the script to determine its own pid, then write that to a file.
Thanks,
Michael
-----Original Message-----
From: Rob Dixon [mailto:rob.dixon@xxxxxxx]
Sent: Sat 4/26/2008 6:49 PM
To: beginners@xxxxxxxx
Cc: Michael Barnes
Subject: Re: Creating PID file
Michael Barnes wrote:
This may be a bit advanced for a beginner's group, but I need to have my
script create a pidfile. I'm running a monitor app that keeps track of
what is running and notifies me when stuff stops. It does it by
comparing the pid in the pidfile with ps. So, I need my script to
create a pidfile when it starts.
Ideas appreciated.
This is far more than a beginners' group, but your post is heavy with Unix terminology. Remember that this is a cross-platform group.
I know that a PID is a process ID, and I can imagine what a 'pidfile' might be, but 'comparing the pid in the pidfile with ps' is nonsense.
Explain the problem, and we will help to solve it.
Rob
.
- Follow-Ups:
- Re: Creating PID file
- From: Chas. Owens
- Re: Creating PID file
- References:
- Creating PID file
- From: Michael Barnes
- Re: Creating PID file
- From: Rob Dixon
- Creating PID file
- Prev by Date: Unable to finally commit the changes made to some lines in a file using Tie::file
- Next by Date: Re: Creating PID file
- Previous by thread: Re: Creating PID file
- Next by thread: Re: Creating PID file
- Index(es):
Relevant Pages
|
|