Running bash commands in the background properly
felixmilea.com
Running bash commands in the background properly
1–10 of 10 posts
Re: Running bash commands in the background properly
#2Re: Running bash commands in the background properly
#3Re: Running bash commands in the background properly
#4Re: Running bash commands in the background properly
#5I found 'screen' to be pretty handy for running scripts in the background. Then you can also reattach later to look at stdout as it's running.
Re: Running bash commands in the background properly
#6I found 'screen' to be pretty handy for running scripts in the background. Then you can also reattach later to look at stdout as it's running.
Screen or tmux. I tend to prefer tmux, but the both have this ability. I'm actuality surprised that there isn't a more elegant choice other than redirecting stdout and stderr to /dev/null where you can fork jobs to a background and reattach later to see the tty. Is there a shell that has a job queue that can be accessed from any number of shells?
Re: Running bash commands in the background properly
#7More importantly, understanding how your jobs behave when your SSH session is killed can be a huge timesaver.
Re: Running bash commands in the background properly
#8 "$@" "${FD[@]" &
And also remember to alias ds='ds '
to enable alias expansion.Re: Running bash commands in the background properly
#9Wouldn't it be better to simply do "$@" "${FD[@]" & And also remember to alias ds='ds ' to enable alias expansion.