Re: Four questions about examples of GNU Screen use

2016-03-06 Thread Axel Beckert
Hi, On Sun, Mar 06, 2016 at 01:10:34PM +0200, Lars Noodén wrote: > > asc () { > > print -Pn "\e]0;%n@%m: autossh -t $* 'screen -RdU'\a" > > autossh -x -t "$@" 'screen -RdU' > > } > > With the shell function you show for autossh, I notice the addition of > -U for screen. How impor

Re: Four questions about examples of GNU Screen use

2016-03-06 Thread Lars Noodén
Thanks, Axel. The feedback is quite helpful, especially the part about how people usually do. > Combined with the above, I use it in a shell function like this: > > asc () { > print -Pn "\e]0;%n@%m: autossh -t $* 'screen -RdU'\a" > autossh -x -t "$@" 'screen -RdU' > } With the sh

Re: Four questions about examples of GNU Screen use

2016-03-05 Thread Axel Beckert
Hi Lars, On Sat, Mar 05, 2016 at 08:23:42PM +0200, Lars Noodén wrote: > 1) Here screen(1) is launched. > > ssh -l fred server.example.org screen ssh lacks a -t option in this example (and the next one). Screen needs a (pseudo) terminal. > Once a screen(1) session is running, it is possible to

Four questions about examples of GNU Screen use

2016-03-05 Thread Lars Noodén
I would greatly appreciate feedback on four examples of screen use that I would like to provide in a guide. I'm a novice user, albeit over many years. What, if anything, can be done better with the four examples below? Comments on any aspect welcome. Regards, Lars 1) Here screen(1) is launched