[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: permision problem?

From: Jan-Henrik Haukeland
Subject: Re: permision problem?
Date: Sat, 13 Jan 2007 01:44:48 +0100

On 12. jan. 2007, at 22.26, gabev wrote:

nohup $CM 1>$LOG_FILE 2>&1 &
echo $! > /tmp/

The problem is that the application is put in the background with the last '&' in the first line. So the pid you save is the pid of the shell, that is, not the pid of the program. You should write this as:

echo $$ > /tmp/
exec 2>&1 $CM 1>$LOG_FILE

Best regards
Jan-Henrik Haukeland

reply via email to

[Prev in Thread] Current Thread [Next in Thread]