New answers tagged gnu-screen
The parent process id (ppid) of a process cannot be changed outside of the kernel; there is no setppid system call. The kernel will only change the ppid to (pid) 1 after the processes parent has terminated - if the process did not respond to a signal that the parent was terminated. For this to happen, the process needs to have ignored various signals ...
No, starting a screen session after a process is started will not help. What you can try is just putting the process in the background. On my Linux (Mint 17) I tried it with another shell and put 'sleep 100000` in the background. Then I logged off the session and started a new one. The sleep 100000 process was still running and the parent became process 1 ...
No. Your Matlab output will not magically appear in the screen session for that you need to first start screen then start the matlab session within it. The same holds true for tmux. If you want to reconnect the stdin/out of this running process to another you can try reptyr
I find that while screen doesn't interpret named characters such as \n, it does take care of octal escapes. So instead of stuff 'echo "The array has of elements."\n', you could use: stuff 'echo "The array has of elements."'\012
You don't mention using a null modem with your serial cable, perhaps that is why you never see anything in the terminal. Since the device is booting, then U-boot is working properly. Your serial settings are correct as defined in to the release notes and the serial console instructions provided on the Toradex developer website. Ensure that you use a null ...
Following a comment suggested in the post I used: screen -x <session id> From the man page: screen -x -x Attach to a not detached screen session. (Multi display mode). Screen refuses to attach from within itself. But when cascading multiple screens, loops are not detected; take care. Also researching a bit I discovered other uses for ...
You should be creating screens with names. $ screen -S foo $ screen -list There are screens on: 16994.foo (03/30/15 14:05:13) (Detached) 20082.q (12/17/14 18:06:44) (Detached) 11008.w (11/12/14 10:52:43) (Detached) 1199.irc (11/12/14 01:34:40) (Detached) Then you can reattach screens with $ ...
Sure, with screen -d -r You can choose which screen to detach and reattach as usual by finding the pid (or complete name) with screen -list. screen -d -r 12345
The man page for screen has select, prev and next for window selection.
My edition of screen on Debian (package version 4.1.0~20120320) has lock functionality built-in; hitting C-a xlocks the entire environment (so that not even detach withC-a d` is permitted). The Debian version of the man page for screen writes, "Call a screenlock program (/local/bin/lck or /usr/bin/lock or a builtin if no other is available)." If you want to ...
You have to use script /dev/null before using screen. After leaving screen you have to exit.
Top 50 recent answers are included