Hi, My script suddenly failed 2 weeks ago after working for years. 'ls' command hangs after the script loggin anonymously. This script was written in c shell. I also have another script written in perl and use the Net::ftp module to ftp the same exact site and 'ls' without any problem. Could someone please tell me what suddenly went wrong and what can I do to make my script work again? Thank you very much!!!
This conversation is currently closed to new comments.
This sounds like passive v. non-passive. Due to firewall configuratins some sites require passive to be on for FTP to work. Once you open an ftp session (before you type anything else after the session is open) type passive. You can put this in your shell script to do as such and it should work. I'm not sure but I'm going to guess that the Perl module uses passive by default. Good luck.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
FTP ls and dir hangs