[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Running a remote command



Hi,

of course you can use Scott's FTP-API "FTP_RmtCmd".  
e.g. a snippet:

// Create Savefile on remote system                               
p$CmdStg = 'CRTSAVF FILE(' + %trimr(p$ToLib) + '/' +              
           %trimr(#Obj) + ')';                                    
If FTP_RmtCmd(fd:p$CmdStg) < *zeros;                              
   r$FTPErrMsg = FTP_Error();                                     
   #FTP0010_01 = r$FTPErrMsg;                                     
   #FTP0010_02 = %char(fd);                                       
   #FTP0010_03 = p$CmdStg;                                        
   r$RtnVal = yDspMsgWdw('FTP0010':'QUSERMSG':'*LIBL':$FTP0010);  
   CallP(E) FTP_Quit(fd);       //  Close FTP session             
   *inLR = *on;                                                   
   Return;                                                        
EndIf;                                                            

Regards,

Werner Noll
Gesellschaft für Individual-Software mbH
Ludwigstrasse 9
63739 Aschaffenburg
Germany
Geschäftsführer: Werner Noll, Bernd Schröder
HR Aschaffenburg HRB 6020
Phone: +49-6021-299880
Fax: +49-6021-299882

-----Ursprüngliche Nachricht-----
Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Harry Williams
Gesendet: Montag, 2. Februar 2009 17:28
An: HTTPAPI and FTPAPI Projects
Betreff: Running a remote command 


Is there an easy way to run a remote command once you have sent a file 
using FTP_PUT?  I want to do some processing with the file after I have 
sent it, and was looking to see if there was some way to run a remote 
command? 

Thanks
Harry 

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------