chertzer@ux5.lbl.gov (Cynthia Hertzer) (03/14/91)
Hi folks, I am writing an X windows FTP interface on a machine running VM/XA. I'm looking for ways to pass variables from a C program to a REXX exec. The C program should get the userid, password, etc. from the user. The C program then calls the REXX exec and passes the the userid/password as parameters so that the REXX exec can call FTP with the appropriate args. My working REXX EXEC looks like this: /* * FTPCMD EXEC * This exec downloads a file to a workstation and prints an FTP * return code */ 'MAKEBUF' QUEUE 'myuserid mypassword' QUEUE 'put myfile myfile' QUEUE 'quit' 'ftp myhost (exit' SAY 'Ready(FTP rc='rc');' 'DROPBUF' EXIT I would like to stack myuserid, mypassword, myfile, and myhost before I call the REXX EXEC. Questions: 1) (Any C programmers out there?) Does anyone know a way I can avoid the REXX part entirely? 2) Page 121 of VM/SP _System Product Interpreter Reference_ says I can use PLISTS. I assume this means I have to write an assembly module to be called by the C module before it calling the REXX EXEC. Is this correct? Also, can someone send me an example of using PLISTS? Please reply by email to chertzer@ux5.lbl.gov Thank you! Cynthia Hertzer chertzer@ux5.lbl.gov chertzer@UCBCMSA.BITNET