News for hackers. Stuff that matters.
Re:Running bash commands in the background properly by Too on Sunday December 07, 2014 @02:53AM (#8711606)
I 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 by chinpokomon on Sunday December 07, 2014 @03:16AM (#8711653)
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 by ordinary on Sunday December 07, 2014 @03:52AM (#8711698)
There's this for attaching a running program to your terminal when it is not started in screen: https://github.com/nelhage/reptyr