The only way i've heard of is using the cron, but id rather do it ad hoc. Is there another way in bash?
Asked
Active
Viewed 45 times
1 Answers
0
Using nohup can also send both stdout and stderr to the same file of your interest other than nohup.out using the below method:
nohup ./your-script.sh > my-output 2>&1 &
You can keep the process running in background mode:
./your-script.sh &
OR
(./yourscript.sh &) &

Ashutosh
- 518
- 7
- 20