Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net::FTP put hanging 1

Status
Not open for further replies.

netman4u

Technical User
Mar 16, 2005
176
US
Hello all,

I have a script that uses the Net::FTP module to do some gets and puts. The gets are working fine but the puts are hanging. Here is the debug output:

Code:
FTP Debug output:

Net::FTP=GLOB(0x403fdb54)<<< 220 Microsoft FTP Service
Net::FTP=GLOB(0x403fdb54)>>> user massmutual\weblog
Net::FTP=GLOB(0x403fdb54)<<< 331 Password required for massmutual\weblog.
Net::FTP=GLOB(0x403fdb54)>>> PASS ....
Net::FTP=GLOB(0x403fdb54)<<< 230 User massmutual\weblog logged in.
Net::FTP=GLOB(0x403fdb54)>>> CWD isftp
Net::FTP=GLOB(0x403fdb54)<<< 550 isftp: The system cannot find the file specified. 
Cannot change working directory 
Net::FTP=GLOB(0x403fdb54)>>> CWD trak11test
Net::FTP=GLOB(0x403fdb54)<<< 250 CWD command successful.
Net::FTP=GLOB(0x403fdb54)>>> CWD isentwebpr01
Net::FTP=GLOB(0x403fdb54)<<< 250 CWD command successful.
Net::FTP=GLOB(0x403fdb54)>>> ALLO 1771731
Net::FTP=GLOB(0x403fdb54)<<< 200 ALLO command successful.
Net::FTP=GLOB(0x403fdb54)>>> PORT 170,6,240,108,201,160
Net::FTP=GLOB(0x403fdb54)<<< 200 PORT command successful.
Net::FTP=GLOB(0x403fdb54)>>> STOR ex080903.log
Net::FTP=GLOB(0x403fdb54)<<< 150 Opening ASCII mode data connection for ex080903.log.

No error messages it just hangs. I can do a manual ftp put just fine.

If at first you don't succeed, don't try skydiving.
 
is there a timeout issue maybe? I'm assuming that would show in the logs, but I'm not sure..
 
try
Passive => 1
when you initiate it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Thanks Travis. That was the problem.

If at first you don't succeed, don't try skydiving.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top