Hi, I configured a scheduled jobs with this command with the "send email output" enabled:
each time it is executed I receive an email with this message
Code
/var/lib/openmediavault/cron.d/userdefined-014d8449-8363-4241-a6ee-5904509cea43: 31: /var/lib/openmediavault/cron.d/userdefined-014d8449-8363-4241-a6ee-5904509cea43: source: not found
Going deeper
Code
cat /var/lib/openmediavault/cron.d/userdefined-014d8449-8363-4241-a6ee-5904509cea43
#!/bin/sh -l
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
sudo sh /home/pi/raspberry-mcg/script/docker/plex/refresh_lib.sh 5
and
Code
cat /home/pi/raspberry-mcg/script/docker/plex/refresh_lib.sh
#!/bin/bash
docker exec plex /usr/lib/plexmediaserver/Plex\ Media\ Scanner -s $1
echo "Lib number $1 refreshed at $(date '+%Y-%m-%d')";
Basically each time I execute e bash script that run a command against a docker container and after prints the date.
I receive above email (I also receive the email with the echo output).
Thanks