How do you start Unix screen command with a command?

后端 未结 6 1266
情歌与酒
情歌与酒 2020-12-13 03:20

According to the docs for the Unix \"screen\" command, you can configure it in .screenrc to start with a bunch of default screens, each running a command that you specify.

6条回答
  •  被撕碎了的回忆
    2020-12-13 03:27

    This might help but may not be entirely what you want.

    Put "zombie az" or "defzombie az" as the first line of your .screenrc. "az" can be whatever 2 keys you'd like. Now, when a screen ought to close (command finished executing, for instance), it won't actually close; hitting 'a' will close it, hitting 'z' will re-execute the command attached to that screen.

    I found that at the screen user's manual.

提交回复
热议问题