• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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