Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Adding into a users crontab

by kyle (Abbot)
on Jan 09, 2007 at 19:27 UTC ( #593774=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $ct_in, '-|', 'crontab -l' or die "Can't read crontab: $!";
    my $crontab_contents = do { undef $/; <$ct_in> };
    ...
    print $ct_out "\n";
    print $ct_out "*/5 * * * * /every/five/minutes\n";
    close $ct_out or die "Can't close crontab after write: $!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://593774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-05-17 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (66 votes). Check out past polls.

    Notices?