1

I have a command I'm running in the background,

fnordctl &

Occasionally I pull it up into the foreground,

fg

Now, I'd like to send it back to the background to continue running. Typing Ctrl-z will suspend the process, and it won't continue running until I run bg.

Is there a way I could background the process without suspending it?

If that's not possible, maybe there's a way I could bind the suspend operation and subsequent bg to a shortcut key (e.g. Meta-z)? I'm using Bash, so maybe this is something I could create a custom Readline binding for?

ivan
  • 1,858
  • 2
  • 19
  • 37
  • [How do you send command line apps directly to the background?](https://unix.stackexchange.com/questions/70724/how-do-you-send-command-line-apps-directly-to-the-background) is probably a better candidate/ – muru Jun 14 '18 at 03:22
  • 1
    Not a duplicate since this question does not ask for the first attempt. – schily Jun 14 '18 at 10:04

0 Answers0