Re: How to pass in arguments from unix script to INFORMIX 4GL program
Posted in 2006
If you redirect input to the 4gl program (i.e. pipe from the script) the 4gl program takes data as if it were typed on a keyboard. BUT you have to write to the output of your script EXACTLY what the programs expects. If you have some AUTONEXT fields and you send the total of bytes, that that field accept, then you must not send CR or LF. The best approach is to try in the keyboard taking note of all the key pressed, including F8 (and it escape sequence) Don´t forget to define the TERM environment variable to that corresponding to the kind of terminal you usually use. It is convenient also, to redirect output to /dev/null. HTH Mario R. Canto At 05:00 05/05/2006, yy4 wrote: >mehdi2@querix.com wrote: > >Hi; > > > >You can use your script file to set some envirenment variables, and > >then use fgl_getenv() to bring the information into the 4gl program. > > > >> Let me explain the background of my problem before I post any question: > >> > >[quoted text clipped - 69 lines] > >> Informix-list@iiug.org > >> http://www.iiug.org/mailman/listinfo/informix-list > >Thanks for you reply. > >But then I can't modify the 4gl program in this case which my boss won't >allow me to do so. All I have to do is only pass in the values from script >itself to the 4GL program in order to automate the process. > >Any idea to resolve this? >Please help it is urgent. >_______________________________________________ >Informix-list mailing list >Informix-list@iiug.org >http://www.iiug.org/mailman/listinfo/informix-list -- Ing. Mario R. Canto mrcanto@gmail.com