Re: Help an amateur access the OS
Posted in 1993
tschaplr@teal.csn.org (Tom Schappler) writes: >How can I access the operating system from within the 4GL? >All I want to do is send report output to a temp file, then, based on >the user's choice, send that temp file to the screen or to the system >printer using 'more' and 'lpr'. You're looking for the RUN command. You can invoke with a single quoted string: RUN "cat /usr/tmp/filename | lpr " or by concatnating several strings into a variable: IF action = "S" THEN # run file to screen LET runtxt = "cat ", txtfile CLIPPED, " | more" ELSE # run to printer LET runtxt = "cat ", txtfile CLIPPED, " | lpr" END IF RUN runtxt See the 4GL manual for more details. ================ Dennis J. Pimple Informix CSE / Denver 303-850-0210