Posted: 06 Nov 2008 13:15 | ||
Registered User Currently Offline |
Posts: 2 Join Date: Nov 2008 |
|
In evaluation mode, the script seems to stop at the change direcotory level
Could you please tell me what's wrong with it #------------------------------------------- # Script name: FTP_GET_TEST.fscr #------------------------------------------- ftpconnect "169.43.150.204", 21, "ftpTest", "ftpTest"; settransfertype ascii; ftpsetpath remote, "To_Lux"; ftpgetlist remote, @remote_list; foreach $remote_list_item in @remote_list begin print $remote_list_item.name; end ftpdisconnect; Executing script C:\Home\Sysax\FTP_GET_TEST.fscr Script Engine: Line 4: Executing ftpconnect. Parameter(s): "169.43.150.204" 21 "ftpTest" (not displayed) Script Engine: Line 5: Executing settransfertype. Parameter(s): ascii Script Engine: Line 6: Executing ftpsetpath. Parameter(s): remote "To_Lux" CWD /To_Lux |
Posted: 06 Nov 2008 13:17 | ||
Moderator Currently Offline |
Posts: 367 Join Date: Nov 2008 |
|
It looks like the script never established a connection with the remote server. Please doublecheck the IP address of the server that is specified in the script and if you are able to manually connect to the server from this computer. You can use the following to check if a connection was successfully established, from within the script, after the ftpconnect command:
if success ne ftpresult begin print "Could not connect to server"; endscript; end |
Posted: 06 Nov 2008 13:20 | ||
Registered User Currently Offline |
Posts: 2 Join Date: Nov 2008 |
|
You brought my attention in the right direction
My problem is solved, it works now fine |