Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

run cron job as specific user

# Crontab Running as a Specific User
# Only /etc/crontab and the files in /etc/cron.d/ have a username field. In that file you can do this:
1 1 * * * username /path/to/your/script.sh
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #run #cron #job #specific #user
ADD COMMENT
Topic
Name
9+5 =