×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: bejoy balan
Added: Oct 2, 2014 11:18 AM
Modified: Oct 2, 2014 11:21 AM
Views: 10
Tags: cronjob
run cron job a program as another user

http://alvinalexander.com/blog/post/linux-unix/run-crontab-entry-as-nobody
  1. 30 1 * * * su -c '/path/to/program/myProgram.sh' -s /bin/sh nobody      run cron job a program as another user  http://alvinalexander.com/blog/post/linux-unix/run-crontab-entry-as-nobody