PDA

View Full Version : crontab help, anybody?


spence
07-21-2003, 02:16 PM
I am using a program called dreamaccount from www.dreamcost.com...and the support has two sections, one called "I Dunno" and the other called "We're workinonit."

So, anybody...kind souls...here's my problem:

I need to set up a crontab, but the only instructions provided are for lynx.
=====
First, you need to install lynx if you have not already.

Then, open your /etc/crontab file and add the following line:

*****lynx-dump http://www.yoursite.com/dreamaccount/?action=cron

Where yourdomain.com/dreamaccount/ is the path to your main DreamAccount directory.
========

Does anybody have any ideas how I might set this up in cPanel?
What to use in the command line? Etc.?

Your input would be greatly appreciated!

admin
07-21-2003, 02:19 PM
You would enter that into the cron section of cpanel control panel.

spence
07-21-2003, 11:58 PM
You would enter that into the cron section of cpanel control panel.

Should I enter the "lynx-dump" part in the command?

And would I enter my own email address for the address I wish the output to go to?

Thanks so much for replying!

way2real
07-22-2003, 12:48 PM
Should I enter the "lynx-dump" part in the command?

And would I enter my own email address for the address I wish the output to go to?

Thanks so much for replying!

I don't know about lynx-dump. I use wget to run a script on my site. If lynx-dump does not work replace it with wget and try it again.

You can use any email address to send the output to or leave it blank (I think) for no email output.

FYI: ***** as you show it above, will run the cron event EVERY minute. If cron is sending email output, it will send that EVERY minute also. That may be overkill and hard on system resouces.

Try a google search for "cron" to learn more.

Good luck

wakkow
07-22-2003, 01:36 PM
Should I enter the "lynx-dump" part in the command?

And would I enter my own email address for the address I wish the output to go to?

Thanks so much for replying!
I think it's supposed to be "lynx -dump" (note the space). This dump the contents of that page to the screen.. I think what it's trying to do is run the php thats on the page: http://www.yoursite.com/dreamaccount/?action=cron

Since it's a PHP script, that's an easy way to run that script.. It'll run it and since it's running as a cron job, it'll dump the output to nowhere.