My name is Chris, Hi!

I'm still trying to get Net::FTP to work... I posted a question about a few 
days ago, and i've got no response... My original question is at the very 
bottom of this email... But my new question is here.

I'm running Redhat 7, perl 5.6, Net::FTP 2.65. 

When i try to connect to an FTP server with Net::FTP within my perl script 
(with other processes occuring as well as the FTP connect), i get an error 
and the connect fails. But when i run it as a test script with only a FTP 
connect, it works. So, I'm going to try to see if i can't just separate the 
ftp into it's own script. and call it from the main script.. How would i run 
the FTP script (without using system or exec) from within perl? Is is like 
"require 'ftptest.pl'"? then how would you call it with arguments? 

        Thanks again,
                -Chris

PS. Of the subject of Perl, but i figure someone might know...
        When i try to backup a mySQL database with a minus sign in the database 
name, it always claims it doesn't understand what the hell the minus is a 
bombs out. Is there a quoting rule or something that i should be aware of to 
bypass this problem? (eg. a database named 'hello-world' would fail)


# FIRST POST
I'm creating a automated backup script and i'm interested in the
Net::FTP module from CPAN. 

My problem is that when i try to connect to an ftp server, it fails with this 
error message in $@ [  Net::FTP: Bad protocol 'tcp'  ]

Now... That error only occurs when i run it in the same (monolithic) backup 
perl script. 

I created a new script that ONLY makes a connection, calls the dir() method, 
and does nothing else and it worked just fine. 

The two connect calls between the test script and the backup script are 
equivalent. 

They are both: 
my $ftp = Net::FTP->new($ftpHost, Debug => 1) || die "Unable to connect to 
$ftpHost [REASON: $@] {$!}\n";

And $! contains [  No such file or directory  ]... Now that doesn't make any 
sense at all to me...

My other question is, what does Debug => 1 do more than if it were at 0?
I don't see any difference...

If i can get this to work, things will be great!

Thanks for any help possible!

         -Chris

P.S. I have already emailed the module author, but i've recieved no reply.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to