URL: https://linuxfr.org/forums/linux-debutant/posts/injecter-une-commande-dans-un-screen-d%C3%A9tach%C3%A9 Title: "injecter" une commande dans un screen détaché Authors: bugjargal Date: 2007年11月10日T18:24:30+01:00 Tags: Score: 0 Salut à tous. J'ai besoin de passer une commande dans un screen détaché. En lisant le man, je vois ceci :
-X Send the specified command to a running screen session. You can use the -d or -r option to tell screen to look only for attached or detached screen sessions. Note that this command doesn't work if the session is password protected.Alors je me lance : screen -dmS ma_session puis screen -S ma_session -X ma commande ou screen -S ma_session -X "ma commande" Mais lorsque je rattache la session concernée, la commande n'a jamais été lancée. Quelqu'un pourrait-il m'aiguiller ? Merci.