Skip to main content
frank000000
Participating Frequently
January 24, 2017
Question

cfftp to call program on AS400?

  • January 24, 2017
  • 1 reply
  • 243 views

During a normal FTP session on the AS400, I am able to put a file onto the AS400 and use a "Call" statement to execute a program to process a file I've just put on the server.

I do not see a "call" action available for cfftp?  Is there a way to accomplish the program execution described above through the cfftp session?

Or is there another way to call the program on the remote server by way of Coldfusion?

This topic has been closed for replies.

1 reply

WolfShade
Legend
January 25, 2017

I am fairly certain that there is not currently a native way of doing what you seek.  It seems like a security implementation, to me.  Imagine someone with a CF server making FTP connections to any other server, pushing a trojan, then executing it.  Nope!

Now.. if the AS/400 system were to have CF Server on it, then you might be able to place a CFFUNCTION on it that contains a CFEXECUTE of the newly uploaded file, have the remote server push a file over to the AS/400, then invoke the CFFUNCTION.  Maybe?  IDK.. never tried it.. never had a need for it.

HTH,

^_^