• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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