executing script per user

Associate
Joined
2 Jul 2004
Posts
1,430
Anybody have a script or can guide me in the right direction of how to execute a process daily per user ?

/home/user1/start_script
/home/user2/start_script

I'm trying to execute the start_script's daily, but under the ownership of the user.

Thanks.
 
Cron (the scheduling service) will be fine for this, you should be able to create a per-user list of scheduled tasks, enter crontab -e when logged in as each user (or crontab -e -u username when root) in a terminal, enter the schedule and the script e.g.
Code:
00 16 * * * /home/user/daily_script
to run it at 4pm every day and save the file. Editing the crontab will probably be using the vi text editor, if you're not comfortable with using it I'd learn as it's a very common, useful program :).

Full syntax for the crontab file here: http://en.wikipedia.org/wiki/Crontab
 
Back
Top Bottom