Based on the
screen man page, you probably intend to use a lowercase "
-s" not uppercase "
-S"
Quote:
Originally Posted by man screen
screen [ -options ] [ cmd [ args ] ]
...
-s program
sets the default shell to the program specified, instead of the value in the environment variable $SHELL (or "/bin/sh" if not defined). This can also be defined through the "shell" .screenrc command. See also there.
-S sessionname
When creating a new session, this option can be used to specify a meaningful name for the session. This name identifies the session for "screen -list" and "screen -r" actions. It substitutes the default [tty.host] suffix.
|
Although since the uppercase one has a benign operation that wouldn't stop cmd executing, there may be a separate issue with the script itself. Are you getting an error message?
If you explicitly have a
bash script, perhaps you should be specifying that, not "sh".