Run command as cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# env - run a program in a modified environment | |
# envirotnment is read from crontab file, usually it's below and nothing else: | |
# SHELL=/bin/sh | |
# PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
env - `cat /etc/crontab | grep -v "#" | grep -v "^$" | grep -v /etc/cron` my_script.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment