Hi,
I have a frew script that run automatically via crontab.
So far all my script was written in sh shell but I now have a bash script and I get the following error:
I figure that the issue here is with the very first line. Is it possible ti have both
SHELL=/bin/sh
SHELL=/usr/local/bin/bash
like this?
SHELL=/bin/sh:/usr/local/bin/bash/usr/local/bin/bash
I have a frew script that run automatically via crontab.
So far all my script was written in sh shell but I now have a bash script and I get the following error:
Code:
/bin/sh: root: not found
crontab -l
Code:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
#
#minute (0-59)
#| hour (0-23)
#| | day of the month (1-31)
#| | | month of the year (1-12 or Jan-Dec)
#| | | | day of the week (0-6 with 0=Sun or Sun-Sat)
#| | | | | commands
#| | | | | |
# run the backup scripts at 4:30am
30 4 * * * /bin/sh /root/myScripts/jailsync.sh >> /var/log/myScripts/jailsync.sh 2>&1
# Automated ZFS backups (hourly):
0 * * * * root /root/myScripts/zfs-snapshot.sh zroot hourly 25
SHELL=/bin/sh
SHELL=/usr/local/bin/bash
like this?
SHELL=/bin/sh:/usr/local/bin/bash/usr/local/bin/bash