Felson
Group: Members
Posts: 54
Joined: Jan. 2007 |
|
Posted: Mar. 11 2007,21:54 |
|
There is an alternative.... Since you can't really make perl run stuf as root, you can make it write to a file that a cron job checks every minute or so. So, the idea is, you make a root run cron that check to see if a file exists, if it does, do some action, and delete the file, if it doesn't, do nothing. Then you make a script that writes the file to the needed location. ya, you have a useless cron running 99.99% of the time, but checking to see if a file exists isn't that expensive really.
|