• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Scheduled Task - Shell Script - Create new Screen

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. :/
 
Back
Top