Thanks for the help.
I made the changes, but I still get the same errors.
BTW, I checked to make sure the logon and password and filename were all correct. OK.
I can't get my script to ftp.
I have a feeling it is network/socket/protocol stuff. ( I don't know much about communciations, as is apparent.)
Can anyone help?
Here's the code.
--------------------------------------------
#!/usr/sbin/perl -w
use Net::FTP;
$host = "123.45.678.912"...
I tried the suggested code.
The result was:
syntax error at ping.pl line 16, near "unless $p"
Execution of ping.pl aborted due to compilation errors.
Any suggestions/help?
Thanks again.
I can't get Net::Ping to work.
Here is my code:
-----------------------------------------------
use Net::Ping;
use Net::FTP;
$host = "hpsab4";
$timeout = 30;
use Net::Ping;
$pong = Net::Ping->new( $> ? "tcp" : "icmp" );
(defined $pong)
or die "Couldn't...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.