Run Scripts in the Background
A script can be run in the background by adding an "&" to the end of the script.
How to Catch output from the script to log file?
If you capture it in a log file, you can keep an eye on it by tailing the log file.
[prdc@sup3bang bin]$ tail -f Test_log_Capture
All output directed to nohup.out.
The script can still be affected by hang-up signals. You can stop this by using the nohup
command. This will accept all standard output and standard error by default, but you can still use a custom log file.
Comments
0 comments
Please sign in to leave a comment.