On Tue, 2015-06-30 at 17:36 +0200, Vincent Lefevre wrote: > how to use GNU screen without writing it > explicitly? > > For instance: > > ssh host my_command > > where my_command is automatically run under GNU screen. When you invoke ssh like this, it executes the command with <SHELL> -c "mycommand", where <SHELL> is the shell as set in passwd. You could simply write a pseduo shell, that if -c is used takes its argument and invokes these via screen. Without -c you could simply run the shell itself.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature