I have a very simple task. I have a crontab that will run a script every hour. The script is meant to simply process a URL.
This is what I have. It doesn’t work. I get a syntax error.
#!/usr/bin/perl
curl http://example.com/page.html;
I haven’t worked in Perl in years and wasn’t very adept when I did.
SOLUTION
Thanks, Alex for pointing me to the correct path!
crontab
*/30 * * * * curl http://example.com/path.html
You can either use
curlvia backticksor you can use
WWW::Curl.