Showing posts with label shell. Show all posts
Showing posts with label shell. Show all posts

Thursday, 9 August 2018

[Shell] How to redirect stderr to stdout in nohup process

1. Redirecting stderr to stdout


#> nohup 2>&1 [COMMAND] &









2. Redirecting both stdout and stderr to specific file


#> nohup [COMMAND] >> [LOG_FILE] 2>&1 &