perl ftp problems

R

robt

I have a perl script using the ftp module which I'm having a problem
with. The script ftp's a file to a server and will first rename the
file on the server if it already exists. I am receiving errors from
the script if I am connecting to a Solaris 9 or 10 server but it works
fine if I connect to a Solaris 8 server. The code I'm having trouble
with is:

@files=$ftp->ls("$filename") or $err=1;

When connecting to a solaris 8 server, the filename is returned if the
file exists and the following is returned if it does not exist:
/bin/ls: tst1: No such file or directory

However, when connecting to a solaris 10 server, the filename is
returned if the file exists but I receive the following error if the
file does not exist:
Illegal seek


Has anyone run into this problem and is there a solution?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top