Reputation: 680
I am using the below command to run my python code as a daemon on the server.
nohup python mycode.py >> log.txt 2>&1 &
For some reason unknown to me only few lines are getting written to the file.
Thanks in advance
Upvotes: 0
Views: 303
Reputation: 5806
nohup itself writing output in nohup.out
so no need to redirect output to log.txt,bydefault all output will be redirected to nohup.out
Upvotes: 1