Scheduled Tasks - Select Shell
Add 'shell' as an option when adding scheduled tasks on Linux.
I have noticed that the shell cronjobs are run under is not consistent currently.
It would be useful to have control over this.
Thank you for your input!
Unfortunately, we have to close your request, because over the years it has not become quite popular for further implementation.
—
IG
-
Mitch commented
When configuring scheduled tasks via Plesk, it populates 'MAILTO' and 'SHELL' variables in crontab. The setting for 'SHELL' is not consistent.
For a quick test I initially set up a new subscription with a single scheduled task, which was to run a bash script. This resulted in the following at the top of crontab:
MAILTO=""
SHELL="/bin/bash"I then removed this scheduled task and added a new one to run a PHP script, this resulted in:
MAILTO=""
SHELL="/bin/sh"As you can see, different combinations of scheduled tasks results in different shells being selected.