I'm trying to write a script that contains this
screen -S demo -d -m which should start a new screen session named demo and detach it.
Putting screen -S demo -d -m in the command line works.
If I put it in a file named boot.sh, and run it ./boot.sh I get
Error: Unknown option m
Why does this work in the command line but not as a shell script?
. ./boot.sh?cat -vet myScreenLaucher.sh. It you see ^M at the end of the line, you are saving file in Windows file mode. You'll have to find the option in your editor to use Unix line endings. Good luck.