L
lkrubner
I saw this script on O'Rielly:
http://www.perl.com/pub/a/2002/08/20/perlandlwp.html
I was wondering if I could get it to work on my machine, so I installed
and tried to run it. I saved this in a script "process.bsh".
#!/usr/bin/perl -w
my $url = 'http://www.bluewallllc.com/hi.php';
use LWP::Simple;
my $content = get $url;
die "Couldn't get $url" unless defined $content;
print "The total was: \n";
print $content;
I get "cannot execute". I chmod to 777 and still get "cannot execute".
I am logged in as root. I switched from the bash shell to the korn
shell and got the same results.
I'm wondering, do I need to save this file with a ".pl" ending? If LWP
is not there on my server, I'll get an error message, yes? Something
more than "cannot execute"?
http://www.perl.com/pub/a/2002/08/20/perlandlwp.html
I was wondering if I could get it to work on my machine, so I installed
and tried to run it. I saved this in a script "process.bsh".
#!/usr/bin/perl -w
my $url = 'http://www.bluewallllc.com/hi.php';
use LWP::Simple;
my $content = get $url;
die "Couldn't get $url" unless defined $content;
print "The total was: \n";
print $content;
I get "cannot execute". I chmod to 777 and still get "cannot execute".
I am logged in as root. I switched from the bash shell to the korn
shell and got the same results.
I'm wondering, do I need to save this file with a ".pl" ending? If LWP
is not there on my server, I'll get an error message, yes? Something
more than "cannot execute"?