Monday, January 21, 2013

Unix nohup : How to spool Log File And Error File

Unix nohup Log File And Error File

Unix type operating systems have a command called nohup which means no hang up. Problem with running applications especially when you log off from the system, is that the application that was running gets terminated as well. To avoid this problem, we use the nohup command. If in case we want to separate the log file from the error file, this is the way to do it:
nohup ./[file] 2>[error_file] > [log_file]

No comments:

Post a Comment