• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Simple Cron Script.... (bad interpreter)?

J

jvanv8

Guest
I tried to run a simple cron from a custom script by entering the script in the "Command" section under the "Crontab Tasks"
My script was as follows:
Code:
ls
As you can see, I just wanted to see if it worked. I got an email with the error message:
Code:
line 1: 
ls
: command not found
So I saw that some people start their scripts with some stuff at the beginning called "shebang"(?) I think. Anyway, I changed my script to this:
Code:
#!/bin/sh
ls
When this was run, I get the email:
Code:
/bin/sh: /home/httpd/vhosts/mydomain.com/httpdocs/cronjobs/my_cron: /bin/sh
ls

: bad interpreter: No such file or directory
What the heck? How can I fix this script so it works with Plesk?
 
Back
Top