Re: Run Command 2.10 to 4.10
Posted in 1993
Thanks to everyone who replied on this to all who showed interest the story is listed below . > > Steve Weet (stevew@chineham.euro.csg.mot.com) wrote: > : Informix 4GL 2.10.03K to Informix 4GL 4.10.UD2 with 5.00.UD1 SE. [...] > : There seem to be some differences in the way the RUN command works. [...] > : In 2.10 RUN seems to exec /bin/sh -c runcommand whereas V4 seems to > : exec pw_shell -c runcommand where pw_shell is the users shell entry > : from the password file. > : Many of our users do not have shell access and their passwd shell entry > : is set to a Shell script [...] therefore our run commands no longer work. > > I believe 4GL works off the SHELL environment variable at runtime which > is set by default to the user's /etc/passwd entry. It would be the > cause of your problems if your users have a nonstandard initial shell. > I must have been brain-dead not to think of resetting this (It's been a tough week :-) > We ourselves reset the SHELL var in the embedded RUN commands in our > code to prevent users from escaping to the shell, or to force a C-shell > onto a Bourne shell user, or whatever. > Further investigation reveals that this is exactly true in fact :- Setting the SHELL variable to your favourite shell will cause 4GL to run a command of the $SHELL -c COMMAND type. Unsetting SHELL altogether causes 4GL to use /bin/sh -c COMMAND. Regards Steve ----------------------------------------------------------------------------- Steve Weet - European Mis - Motorola Cellular Subscriber Group Beechgreen Court, Chineham, Basingstoke, HANTS England. Phone : +44 (0)256 790154 E-Mail stevew@chineham.euro.csg.mot.com Fax : +44 (0)256 817481 Mobile : +44 (0)850 335105 Post : w10075 > Van > Regards Steve ----------------------------------------------------------------------------- Steve Weet - European Mis - Motorola Cellular Subscriber Group Beechgreen Court, Chineham, Basingstoke, HANTS England. Phone : +44 (0)256 790154 E-Mail stevew@chineham.euro.csg.mot.com Fax : +44 (0)256 817481 Mobile : +44 (0)850 335105 Post : w10075