cmak.fr
New Pleskian
Hello
I have a system user with a scheduled task, a "Run a command" task runs a bash script.
The .sh script is run in the chrooted environment as should and works well...
... but the part where it should send an email fails.
Here is the email send command (in script):
/bin/mail -s "The subject" "myrecipient@hismail.net" < $msgfile
This command works fine from root ssh but doesnt from user cron.
Maybe a chroot issue.
Could any one help ?
I have a system user with a scheduled task, a "Run a command" task runs a bash script.
The .sh script is run in the chrooted environment as should and works well...
... but the part where it should send an email fails.
Here is the email send command (in script):
/bin/mail -s "The subject" "myrecipient@hismail.net" < $msgfile
This command works fine from root ssh but doesnt from user cron.
Maybe a chroot issue.
Could any one help ?