Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I lean towards

  nohup time whatever >whatever.out &
because so many programs behave differently when attached to a tty (like prompting for input) and I just want a plain text log that says when it succeeded or where it blew up.


Well that is fine, but that is only covering a very small sliver of what screen/tmux are used for.


Agreed, and my problem with even the usage above is that I often realize too late that "whatever" is not going to finish before I need to unplug. Then I have to kill "whatever" and restart with nohup and logging. tmux/screen always has me covered.


Obviously I think tmux/screen is the better option, but bash's builtin 'disown' may have you covered for that specific usecase.


Thanks for the tip, I didn't know about "disown".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: