Re: running 4GL processes via an rpc or rsh
Posted in 1994
} Subject: running 4GL processes via an rpc or rsh } Date: Fri, 4 Nov 1994 12:02:25 +0000 } Reply-To: alexmc@biccdc.co.uk } } I want to run someone else's Informix 4GL programs from a PC program } I can start the program up simply by running it from an rsh } or rpc. this displays a form where normally you would hit } q (for query) } and enter a product code } } but since I want to do this from inside a program I don't have a "user" } who can type these in. It isn't a telnet session. } } I thought I might be able to } } 4glprogram < script.txt } } but this doesn't seem to work. } } Any ideas? } -- } Alex McLintock [also alexmc@biccdc.co.uk] } Editor for the Project Galactic Guide (alt.galactic-guide) Number 6 *IF* you can change the 4GL code, then the following might work for you: Change the 4GL program to check for command line argument(s) using the NUM_ARGS() and ARG_VAL() functions. If none are found, display the form, etc. If argument(s) are found, then use it(them) as product code(s), don't display the input form, and just do the rest of the processing. Regards, Alan ___________________________ ______________________| R. Alan Popiel |__________________________ \\ Internet: | Martin Marietta, SLS | / \\ alan@den.mmc.com | P.O. Box 179, M/S 3810 | Std disclaimers apply. / )Voice: | Denver, CO 80201-0179 USA | ( / 303-977-9998 |___________________________| (But you knew that!) \\ /________________________) (____________________________\\