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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Harbinger API Scripting language problems

Status
Not open for further replies.

batman2282

Programmer
Sep 23, 2002
2
CA
Hello all,

I am currently in the process of writing a script (A Harbinger API script for FTP communications). It is the same script as for all our trading partners with some minor differences (i.e. remote IP address is different, account passwords are different, things like that), so it should work just fine. But it times out (FTP time out) after the command 'recv "file1" delete'. We have tracked the problem doen to the fact that our trading partner has the interactive FTP prompt defaulted to on. So when deleting a file on the remote server, the script times out because Harbinger expects an error code (i.e. 250) to be returned. When interactive prompt is set to on, FTP will ask for confirmation and thus no error code is returned.

So, my problem is this. I am using the SCRIPT command to execute a shell script that will toggle the prompt to off, and them delete the files. But no matter what I code in the shell script (even an empty one), I get an error in the log file that reads "SCRIPT execution error: [scriptname]". How so I make this stupid thing work?

Any advice would be appriciated.

Thanks and have a great day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top