Use nohup! Here’s an example…
nohup /some/script.ksh
And even better, to redirect all output to a specific location…
nohup /home/user/script.ksh > /home/user/script.log 2>&1 &
Yes, the ” 2>&1 &” at the end is important.
Please remember to subscribe to the newsletter to stay up to date!You or someone you know looking to buy or sell?
Disclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...