Jump to content

Chron Job

Recommended Posts

I want to run a chron job that executes a series of perl scripts I have made to plunder newsgroups and add their new posts to my database.


Should I expect problems running a cron job of the type "perl ~/ng/ng.pl" which then calls a bunch of other scripts and writes stuff some temp files in ~/ng?

Link to comment
Share on other sites



MY knowledge of cron jobs is a bit limited but as far as I know, they are just scripts that are running like if you had called them from the command line, so if the script executes correctly from the command line, it should have no problem running as a cron job.


If you want to make sure there's no problem, make a few simple scripts that only call the other scripts and make them print something into a file. :)

Link to comment
Share on other sites

Yeah, borfast is right.


Cronning is virtually the same as accessing a file in the browser. The difference is the command-line interface. There are subtle differences in how you execute things and have data passed on to something else.


In any case, if it works when you run it from your browser, there should be no problem from the cron job.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...