FTPPutFile won't transfer to HP3000

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
stuart.smith
Newbie
Posts: 2
Joined: Mon Aug 30, 2010 12:39 pm

FTPPutFile won't transfer to HP3000

Post by stuart.smith » Mon Aug 30, 2010 1:13 pm

We hava a pc with XP pro that we use a a server to transfer clock in/out data to the hp3000. It worked great until I change this pc from a group to a domain. I can ftp from the command prompt and set up the hp3000 (159.157.21.1) as a FTP on Network places, but the program still won't transfer using the following FTPPutFile. It's macro scheduler 12.0.0.30.

FTPPutFile>159.157.21.1,manager.mmdata,apple23,21,c:\ftpdone\%HPFILE%,b4time.idatabas.mmdata,A

Any suggestions?
thanks,
Stuart

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Mon Aug 30, 2010 1:25 pm

As a trouble shooting procedure try the following things:

1.) turn off the windows firewall on the xp doing the FTP

2.) Launch Macro Scheduler from a shortcut by right clicking on
the shortcut and picking Run as ---> Administrator

3.) try setting the variable FTP_PASSIVE=1 before FTPPutFile
try setting the variable FTP_PASSIVE=0 before FTPPutFile


4.) Display the output from the variable FTP_RESULT after the
FTPPutFile finishes

stuart.smith
Newbie
Posts: 2
Joined: Mon Aug 30, 2010 12:39 pm

ftp hp3000

Post by stuart.smith » Mon Aug 30, 2010 1:37 pm

It never finishes. Upon execution, when the program gets to the FTPPutFile part, it opens up a very wide window with a lot of gibberish in it. You have select from button choices OK or ABORT. Either way, the file won't transfer over to 159.157.21.1.

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Mon Aug 30, 2010 1:48 pm

Did you try each and every one of the suggestions 1 at a time?


Try running in a debugger window by executing each line
by pressing F8 key. Look at the watch variables


By default the timeout for FTP commands is 15 seconds... if this
is too long or too short you can change the variable FTP_TIMEOUT
to a smaller or larger value.

It's important to look at the value of FTP_RESULT. This will give
a clue to what is happening.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts