Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   perl ftp problems (http://www.velocityreviews.com/forums/t901863-perl-ftp-problems.html)

robt 02-15-2007 05:38 PM

perl ftp problems
 
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.



All times are GMT. The time now is 07:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57