Re: RUN and the shell
Posted in 1995
} Subject: RUN and the shell } To: informix-list@vprp333q.prop.telecom.com.au } Date: Wed, 8 Feb 1995 16:07:05 +1100 (AEDT) } From: Ian Timms <itimms@vprp333q.prop.telecom.com.au> } } I am using csh as my standard shell when invoking my 4gl programs } (using fglgo and SE), when the RUN command is used it is picking } up csh rather than sh as the shell to be used and thus a number of } commands (specifically redirection of stderr to stdout) fail and } I get an 'Ambiguos Output Redirect' message which does not occur } if sh/ksh are used. } } Q. Is there a way to force the RUN command to use sh? } An informix specific env setting perhaps? } } If not then I guess I'm stuck with setting SHELL prior to fglgo'ing } and restting it afterwards. } } Cheers, Ian. } Hoping for a cleaner solution, How about having your RUN command run a script, and having the script run the program you want? However, the first line of the script should be: #! /bin/sh which will cause it to use sh instead of csh. Regards, Alan +---------------------------+-----------------------------------------------+ | R. Alan Popiel | Internet: alan@den.mmc.com | | Martin Marietta, SLS | Voice: 303-977-9998 | | P.O. Box 179, M/S 3810 | Standard disclaimers apply. Cutesy ones, too. | | Denver, CO 80201-0179 USA | Your mileage may vary. Void where prohibited. | +---------------------------+-----------------------------------------------+