Why do I receive a bash syntax error when amending output >> to a file from a nohup command?
# sudo nohup php something.php &>>/tmp/output
-bash: syntax error near unexpected token `>'
I'm using red hat enterprise
|
Why do I receive a bash syntax error when amending output >> to a file from a nohup command?
I'm using red hat enterprise
| |||
|
feedback
|
|
There's no reason to do that. When you "nohup" a command and BG it, output will automatically be redirected to $HOME/nohup.out. Even if it did work, you'd likely wind up with an empty file. | |||||||
feedback
|
|
For bash | |||
|
feedback
|
&>>is abash-4-ism to append both stdout and stderr to a file. Older versions of bash and other shells do not have this. – DerfK Oct 25 '11 at 20:45