4 ms·
This may be a dumb question, but wouldn't this work? * press ctrl-z to put the program in the background * start screen * run fg within screen
by pronoiac 12y ago
This may be a dumb question, but wouldn't this work?
* press ctrl-z to put the program in the background
* start screen
* run fg within screen
- caipre 12y agoscreen (and tmux) start a new instance of the shell, which would have no knowledge of the backgrounded process. You'd just see the message "fg: no current job"
- emmelaich 12y agoAnd even if you could(1), the background process typically has the terminal open - and screen uses a separate pseudo terminal aka pty -- As suggested by the name - rePTYr (1) ^Z sends SIGSTOP; to continue you can signal SIGCONT. But then what?!
- deleted 12y ago[deleted]