RE: SCO-Linux portability for 4GL
Posted in 1999
> Scott Holmes wrote: > > > > Specifically, the call to a printer. I am porting a number > of programs, many > > of which are reports, from out long standing SCO 4GL > application. The only > > significant change I need to make is for the call to the > printer; ie start > > report to pipe "lp -d" printer_name. On Linux (RedHat5.2) > this call needs to > > be lpr -P. Rather than maintain two versions I would like > to use a switch. > > > > So, I'm asking for suggestions on preferred methods of > determining what > > particular system the application is running on. I'm aware > that I could > > signal this with > fgl_getenv("SOME_VARIABLE_FOR_SYSTEM_NAME") but would prefer > > to avoid additional arbitrary environmental variables if at > all possible. > My preferences, see as we are using databases, is to use a table that contains all the site specific stuff. Paul Watson # WF Software Ltd # Any answer given Tel: +44 1463 674729 # could be totally Fax: +44 1463 678729 # fictitious www.wfsoftware.com #