batman2282
Programmer
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.
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.