Quote:
Originally Posted by stg_in2009
Hi All,
I have a perl script that needs to be run from all Login users say once a week. How to accomplish this? I dont want this to run at startup. From crontab it needs to be set in each users login. Is there a better way to do this?
I require my perl script to run at particular time on every saturday from all login. Any workaround to this requirement?
Server OS: RHEL 3
Kindly guide me.
Thanks
STG
|
Depends what the script needs doing. Maybe it could be run from roots crontab and just cycle via each users home dir??
Or just add the cron to a file in normal cron format, and then
use a for loop to add to the crontab of each user.
something like
Code:
for user in `command to list valid users`
do
crontab -u $user file
done
Few ways to do this...dpends on what the actual script running from the cron does...