Wget in cron


#1

i am installing a script which requires a php (wp-plugin) to make a call (pull in a pre-formatted rss feed). the instrux are written purely for a stock c-panel type install.
the .php is activated by a cron job.
the cron job was pre-written for a c-panel sandbox.
as supplied the cron reads:
/usr/bin/wget -O - -q http://www.yourdomain.com/plug-in.php

i am thinkin that for dreamhost it needs written:
/usr/bin/wget/php5/username/domain.com/directory/plug-in.php
and then set time to invoke from dreamhost’s “panel.”

but i am more than seriously illiterate on anything on the back end.
the support wiki only discusses wget thru putty.
given the “power” of wget, i do nottt want to do this wrong.
any and all suggestions written down to the level of an idiot will be more than appreciated.
thank you.


#2

[quote]am thinkin that for dreamhost it needs written:
/usr/bin/wget/php5/username/domain.com/directory/plug-in.php
and then set time to invoke from dreamhost’s “panel.”[/quote]

You’re trying trying to fix something that is not broken.

Documentation for wget can be find by searching Google, for example man wget

/usr/bin/wget is the path to the wget program.
-O - means output the content instead of writing it to disk
-q means to turn off output
Finally http://www.yourdomain.com/plug-in.php is an HTTP URL that wget is going to fetch.

So given this command, if you add it as a Cron Job in the DreamHost Web Panel, wget will fetch the URL and then the content returned will be sent to you by e-mail (given you enabled that in the Web Panel). Nothing particularly DreamHost or C-Panel specific involved.

Customer since 2000 :cool: openvein.org | Please don’t feed the trolls. :@


#3

thank you . i gave that a shot and it began to work.
i note in response to :"Documentation for wget can be find by searching Google, for example man wget"
that i am used to spending an hour or two sorting thru such documentation trying to get into an english i can comprehend before i ever ask anyone a question.
your direct “that script will work, try it” was far more helpful than something by developers, for developers.