-2

The only way i've heard of is using the cron, but id rather do it ad hoc. Is there another way in bash?

Ray
  • 615
  • 7
  • 22

1 Answers1

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