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]

It’s as simple as that.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *