Re: Unix commands in isql
Posted in 1998
Gary Duzan wrote: > > Les Sokolowski wrote: > > > > Hi All, > > > > In ISQL it is possible to execute Unix commands by pressing "!" and > > typing > > a command for example: !ls or !rm *. > > > > Does anybody know how to disable this feature ? > > I don't know if there is an isql-specific way of doing it, but > you might try: > > sh and friends: > SHELL=/dev/null isql > > csh and friends: > (setenv SHELL /dev/null ; isql) > > They can still do "!rm *", but it will have no effect since there > is no valid shell to execute it. I don't know if there are any side > effects to this, though, so you might want to try it out thoroughly > before putting it in place. On the other hand, it will also prevent > shell commands from running from the external editor, which is > probably what you want. > > Gary Duzan > GTE Laboratories A possible side effect to look for would be failure when piping report output to a command. Also, if you use the menu generation system you might have problems. I haven't investigated any of this, just guessing from knowledge of what isql does. -- Peter Lancashire Information Systems Specialist, Bayer plc Eastern Way, Bury St Edmunds, Suffolk, IP32 7AH, UK Tel: +44-1635-562258, Fax: +44-1635-562281 Mail: Peter.Lancashire.PL1@bayer.co.uk --- My Internet plumbing does not allow me to mail and post news together. Sorry. All opinions are my own and not those of Bayer plc. --- Join Infuse, the UK Informix User Group at http://www.infuse.org.uk/