[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Directing to a file...
From: |
sam |
Subject: |
Directing to a file... |
Date: |
Fri, 17 Feb 2006 17:25:18 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20051002) |
Running program many times I noticed that
ps -p $$ -o pid,args > waiting.$$;
lockfile -1 setting
if ! cat waiting.$$ | egrep -q '[0-9]'
then
ps -p $$ -o pid,args > check.$$
echo "What's going on!!!"
exit 1;
fi
sometimes it prints "What is going on". File
waiting.1234 contains only ps-headers, that is
PID COMMAND
while check.1234 contains
PID COMMAND
1234 ./my_program arg1 arg2
Is this a bug?
--
www.TOTALIZM.com UFO Earth Occupation
http://jan-pajak.com/wtc.htm
http://jan-pajak.com/shuttle.htm
http://jan-pajak.com/predators.htm
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Directing to a file...,
sam <=