Il est vrai que la page de man n'est pas des plus claire, qui sait, peut être qu'un jour quelq'un aura l'heureuse idée d'y ajouter des exemples...
Si j'ai bien compris, il te faut :
screen -d -m /machin/tacommande
-d|-D [pid.tty.host]
does not start screen, but detaches the elsewhere running screen
session. It has the same effect as typing "C-a d" from screen’s
controlling terminal. [...]
-m causes screen to ignore the $STY environment variable. With
"screen -m" creation of a new session is enforced, regardless
whether screen is called from within another screen session or
not. [...]
# -d et -m
Posté par nojhan (site web personnel, Mastodon) . En réponse au message lancer screen et plusieurs shell dedans en mode detach. Évalué à 3.
Si j'ai bien compris, il te faut :
screen -d -m /machin/tacommande
-d|-D [pid.tty.host]
does not start screen, but detaches the elsewhere running screen
session. It has the same effect as typing "C-a d" from screen’s
controlling terminal. [...]
-m causes screen to ignore the $STY environment variable. With
"screen -m" creation of a new session is enforced, regardless
whether screen is called from within another screen session or
not. [...]