mic2100
12-20-2007, 08:22 PM
Hi,
i have been having a problem for a while now and i can't seem to find a solution to it.
I have a cron job that runs every day and email me the response
page: line 1: my: command not found
page: line 3: use: command not found
page: line 4: my: command not found
page: line 5: die: command not found
page: line 7: print: command not found
Above is the response (and it doesn't do what it is supposed to)
The code is as follows
my $url = 'http://www.somesite.com/somepage.html';
use LWP::Simple;
my $content = get $url;
die "Couldn't get $url" unless defined $content;
print $content;
What i am trying to do is open a webpage that will run all the jobs that i need running each day. I have been trying to find a replacement for this in a CGI script since i know that CGI runs on the server. I also think that the above error are caused by a perl installation with limited functionality since it runs fine on my computer.
Any help would be greatly received.
Thanks
i have been having a problem for a while now and i can't seem to find a solution to it.
I have a cron job that runs every day and email me the response
page: line 1: my: command not found
page: line 3: use: command not found
page: line 4: my: command not found
page: line 5: die: command not found
page: line 7: print: command not found
Above is the response (and it doesn't do what it is supposed to)
The code is as follows
my $url = 'http://www.somesite.com/somepage.html';
use LWP::Simple;
my $content = get $url;
die "Couldn't get $url" unless defined $content;
print $content;
What i am trying to do is open a webpage that will run all the jobs that i need running each day. I have been trying to find a replacement for this in a CGI script since i know that CGI runs on the server. I also think that the above error are caused by a perl installation with limited functionality since it runs fine on my computer.
Any help would be greatly received.
Thanks