in reply to Can return be used between platforms

FTP is a protocol, and as such mostly platform agnostic when done right. The status codes shouldn't be platform dependent. If you want to be sure, use a tool such as tcpdump to monitor your traffic, and compare the FTP traffic between hosts where it works and where it fails.
The first file gets transferred and then the script stops/disappears.

What does that mean? does it terminate? If yes, what's the exit code? is there an error message?

Is suspect it's a programming error on your side, but without seeing the code I can't be sure.

Replies are listed 'Best First'.
Re^2: Can return be used between platforms
by Ronnie (Scribe) on Aug 07, 2008 at 10:59 UTC
    The script I wrote for UNIX uses Net::FTP and still works to this day on all of our UNIX platforms. When converted for Windows the script, as expected, finds 3 files for transfer. After the first file has been transferred there is no response from the target server and the script just seems to terminate/disappear at this point. Obviously after transferring a file a check is performed on the returnval variable to see if it worked. I have placed a print of the returnval immediately after the FTP and before the returnval is tested. This print is not actioned leading me to believe that the returnval is not being returned to the initiating script. I'm guessing that there is some issue with the setup of FTP on the servers rather than there being an issue with my script.