Re: Help an amateur access the OS
Posted in 1993
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
In article <tschaplr.742711710@teal> tschaplr@teal.csn.org (Tom Schappler) writes: > >I'm new to the Informix world and I'm sure this is a simple question, but >I have RTFM and still have no clue. > >How can I access the operating system from within the 4GL? > the run command allows you to run system commands and shell scripts etc. >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'. > we do a similar thing with our database product but we use a general default file and user specific default files to determine what `printer` the reports should go to, we then check these values and pipe the output to the relevant command. Thus depending on what the user wants the report can be sent to the screen or to one of many printers. We also have a spooling option which will store the report into a temporary file and allow display and or printing of the reports. >Thanks for any ideas. > >+---------------------------------+------------------------------------------+ >| Tom Tschappler | tschaplr@csn.org | >| Colorado Springs, CO USA | 71730.207@compuserve.com | >+---------------------------------+------------------------------------------+ hope this is of help - mak -- I can see the fnords