Re: Why is a nohup.out file created for this command?
- From: Bill Marcum <marcumbill@xxxxxxxxxxxxx>
- Date: Tue, 20 May 2008 18:08:27 -0400
On 2008-05-20, Wolfgang Meister <wmeister@xxxxxxxxxxx> wrote:
When I perform the following command:
nohup sh -c "echo `date` >>logfile.txt && ls -l >>logfile.txt && echo `date` >>logfile.txt" &
or - alternatively - without the trainling "&":
nohup sh -c "echo `date` >>logfile.txt && ls -l >>logfile.txt && echo `date` >>logfile.txt" &
I always got a response:
nohup: appending output to `nohup.out'
file nohup.out is created but always empty. logfile.txt is filled as intended.
How can I suppress the nohup.out message and the nohup.out file creation?
Wolfgang
The nohup command sees the arguments 'sh' '-c' and a long quoted string.
To suppress nohup.out, you need to redirect nohup's output.
.
- Prev by Date: Re: Why are here no line feeds/CRs ?
- Next by Date: Re: Why is a nohup.out file created for this command?
- Previous by thread: Re: Why is a nohup.out file created for this command?
- Next by thread: Re: Why is a nohup.out file created for this command?
- Index(es):
Relevant Pages
|