NeoGriever
New Pleskian
Hello there.
How to create a new Screen (screen -d -m -S SomethingName sh SomethingToDoInside.sh) straight from a scheduled task
The problem: the task finishes and theres NO new screen with the specifed shell script running inside.
The screen-command works correctly on the lines before.
here's the current script (its german. but it handles a timed server-restart of a minecraft server)
echo "Server-Neustart startet." function find_screen { if screen -ls "$1" | - Pastebin.com
This script sends the commands correctly to the minecraft screen console throught the screen command.
but the command at the end don't work ... without error
if i run this last command in putty, it works perfectly ...
please help me :/
btw: Scheduled Task is set to root-user and the crontab-shell are set to /bin/sh
Please help. :/
How to create a new Screen (screen -d -m -S SomethingName sh SomethingToDoInside.sh) straight from a scheduled task
The problem: the task finishes and theres NO new screen with the specifed shell script running inside.
The screen-command works correctly on the lines before.
here's the current script (its german. but it handles a timed server-restart of a minecraft server)
echo "Server-Neustart startet." function find_screen { if screen -ls "$1" | - Pastebin.com
This script sends the commands correctly to the minecraft screen console throught the screen command.
but the command at the end don't work ... without error
if i run this last command in putty, it works perfectly ...
please help me :/
btw: Scheduled Task is set to root-user and the crontab-shell are set to /bin/sh
Please help. :/