Reputation: 7
I am running two scripts
# Script 1
nohup sh {command} &
and the nohup.out is having all logs in details (for script 1)
# Script 2
nohup sh {command} > {log_path} 2>&1 &
But nohup.out having only limited log as listed below (for script 2),
## Script2 output
Shutdown message has been posted to the server.
Server shutdown may take a while - check logfiles for completion
How can i generate all logs by using script 2 format in nohup.out itself .
Upvotes: 0
Views: 690