LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Horst Poehlmann <horst@pobox.com>
To : <linuxsa@linuxsa.org.au>
Date: Fri, 29 Jun 2001 14:57:36 +0930
ps and processes
Question...
I run a program that monitors if a process is still running. It works
for a while and then tells me that the process has died even though it's
still running. I know why, but I would like to solve it. Basically what
happens is that I grep for a line to match a certain pattern. eg.
root 29437 0.0 0.3 4356 3224 ? S Jun24 0:00 perl /usr/bin/swatch -c /root/.swatchrc some other params here...
root 29438 0.0 0.3 4344 3212 ? S Jun24 0:00 perl /usr/bin/swatch -c /root/.swatchrc.page some other params here...
I'm basically grepping for .swatchrc and .swatchrc.page (I'm monitoring
them seperately).
After a few days however, those processes get swapped out to memory and
I get the following:
root 29437 0.0 0.0 4356 0 ? SW Jun24 0:00 [perl]
root 29438 0.0 0.0 4344 0 ? SW Jun24 0:00 [perl]
The W meaning that it has no resident pages. I asume that it has swapped
it out of memory. As you can see, the parameters have gone and therefore
my script thinks that it is no longer running.
I guess my question is, can I stop it from swapping out or use a command
that will still give me the full list of parameters (or both).
TIA
Horst.
--
Horst.
Phone: 0414851661 email: horst@pobox.com
Beer is proof that God loves us and wants us to be happy.
--Benjamin Franklin
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page