Re: SCO-Linux portability for 4GL
Posted in 1999
From: Scott Holmes <sholmes@pacificnet.net> > >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. Being a bit of a slow starter, I would have rather gone for a shell script to stick on the Linux box called /usr/bin/lp, which then invoked the appropriate lpr command. It's another way of doing it. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com