Script Library

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment.


gxs_upload.s

Download

When properly configured, Robo-FTP can transfer files to GXS servers. Please keep the following items in mind when designing a command script to transfer files to GXS:

  • Your User ID may be referred to in GXS documentation as a Mailbox ID.
  • It is common for GXS to assign one User ID (mailbox) for uploading files and another separate one for downloading files.
  • GXS servers use IBM-style syntax.
  • Use implicit mode SSL when opening a FTPS connection to a GXS server.
  • GXS may specify a non-standard port or port range to use when connecting to their servers.
  • When transferring files, in addition to the file name you also need the User ID and reference number.
  • GXS has multiple different platforms. Commands that work on the GXS Trading Grid might not work on GXS ecXpress - Please contact Robo-FTP technical support if you are unable to make Robo-FTP work with a specific GXS server.

The following example opens an FTPS connection to GXS on port 6366 with a User ID of "MAILBOX1" and "secret" as the password. Once successfully connected, a file in the current local working directory named "readme.txt" is uploaded to the server.


  1  FTPLOGON "GXS Managed Site" /retrycount=2 /retrydelay=10
  2  IFERROR RETURN
  3  ;; GXS upload syntax = put filename %[UserID]%[AppRef]%[SenderRefNum]%b
  4  SENDFILE "readme.txt" /as "readme.txt %MAILBOX1%TEST%123456%B" 
  5  IFERROR RETURN

Browse complete list of scripts