When I run nohup some_command &, the output goes to nohup.out; man nohup says to look at info nohup which in turn says:

If standard output is a terminal, the
command’s standard output is appended
to the file ‘nohup.out’; if that
cannot be written to, it is appended
to the file ‘$HOME/nohup.out’; and if
that cannot be written to, the command
is not run.

But if I already have one command using nohup with output going to /nohup.out and I want to run another, nohup command, can I redirect the output to nohup2.out?

5 Answers
5

Leave a Reply

Your email address will not be published. Required fields are marked *