Screen -X isn't working (“No screen found”)

后端 未结 2 433
抹茶落季
抹茶落季 2020-12-12 03:28

I have this php code:

echo shell_exec(\'sh /backups/turnon.sh\');

The /backups/turnon.sh code is:

scree

2条回答
  •  粉色の甜心
    2020-12-12 03:50

    The man page for screen specifically states:

    -x   Attach to a not detached screen session. (Multi display mode).
    -X   Send the specified command to a running screen session.
    

    The error message you're getting says that there's no existing screen process running to attach to. Something is different between your PuTTY login environment and the environment in which the script is trying to run, possibly that you have a screen session running as your PuTTY login user but none running as the user running the script.

提交回复
热议问题