• Welcome to Sitemap Generator Forum.
 

Cron Job with Wget

Started by info1585, April 01, 2012, 10:52:01 PM

Previous topic - Next topic

info1585

What would the code be to have a Cron Job run using Wget?  Please let me know.


info1585

I did as you suggested and I am getting the following error:

/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file

Please advise.


info1585

Yes, I have many other cron tasks set up with wget.

FYI: If I removed the &resume=1, it runs.

Please advise.

XML-Sitemaps Support

Please try to enclose URL in quotes:
wget "[ External links are visible to logged in users only ]"

info1585

That is exactly what I have.  I still get the error.

Please advise.

XML-Sitemaps Support

You can try single quotes instead:
wget '[ External links are visible to logged in users only ];

info1585

I did the single quote and this is what I get...

--2012-04-05 07:37:01-- http://mysite/generator/index.php?op=crawlproc&resume=1 Resolving [ External links are visible to forum administrators only ]... myip Connecting to mysite|myip|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `index.php?op=crawlproc&resume=1.1' 0K .......... .......... .......... .......... ...... 2.04K=23s 2012-04-05 07:37:28 (2.04 KB/s) - `index.php?op=crawlproc&resume=1.1' saved [47413]

Does that mean it is working correctly?