Hello Monks,
I wrote a small script that needs to be able to run on a daily basis in order to work efficiently, but I'm not sure how to do this. I know under Liunx there is the whole crontab concept, but I am unfortunately not too familiar with it.
The problem is that I've created a web-based script that I want to be able to give to other people. For my self, I could simply find out how to edit my host's crontab and I would be set. For others without any computer experience, this might be able difficult task.
Is there a way to add a cronjob using Perl? I think the crontab is just a file, so could I just append a new line of information to that file in order to get the desired results. If I'm running this from the web, will I run into permission issues.
Any suggestions on the best way to setup a script to run daily would be greatly appreciated. Thanks in advance. -Eric
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.