poll: when you're using your shell **interactively**, do you ever use its job control features (ctrl+z, fg, bg, `jobs`, `wait`, etc?)
(other than maybe occasionally backgrounding a process with &)
poll: when you're using your shell **interactively**, do you ever use its job control features (ctrl+z, fg, bg, `jobs`, `wait`, etc?)
(other than maybe occasionally backgrounding a process with &)
Three use cases:
1) you have a very long task (task1) running. After that would come task2. It's lunch time. CTRL-Z to pause the first playbook, fg && task2. Now first task will continue and after that the second one - while you're having lunch (if the first one doesn't fail, of course.
2) you're stopping a systemd service. It tends to take a lot of time to quit (more than 5 seconds). You don't care to wait. CTRL-Z to pause, bg to run in background. Continue business and just trust that it'll stop.
3) You have no tmux and you're configuring ocer ssh. You're editing a conf file and running the configured program consecutively. The workflow: edit, CTRL-Z out of editor, run program, doesn't work, fg to bring editor up. Iterate that