Re: INFORMIX HELP !!!
Posted in 1998
SANDIP SAMANTA wrote: > > Hi Family, > > I am new in I4GL world..Our I4GL version is 4.10. I am facing some > problem for run command. When I am trying to excute any shell script > by run command then it makes my screen blank. I think newer version > of I4GL has one utility which is form mode. Which does not make > screen clear. But in 4.10 version is there any option to get rid of > this problem ??? > > I also want to know how I could be able to interact with our Unix > home dir. Means if I make any option which will let my user to put > his/her own file name & if that same file name exist under the same > dir then it will warn my user that same file is existising.. Is > there any option ??? > > Any suggetion will be highly appreciated .... > > Regards > > Sandip Samanta The following C code from my library will do a quiet run of a Unix command: /* ---------------------------------------------------------------------------- %W% - run a unix command without screen redraw called from - Informix 4GL args - command to run returns - shell exit status ---------------------------------------------------------------------------- */ #define SBUF_LEN 1024 extern int quietrun(cArgs) int cArgs; { char sBuf[SBUF_LEN]; int retval; popquote(sBuf, SBUF_LEN); retval = system(sBuf); retval = retval >> 8; /* shift right by 8 bits to get exit */ retint(retval); return (1); } -- Peter Lancashire Information Systems Specialist, Bayer plc Eastern Way, Bury St Edmunds, Suffolk, IP32 7AH, UK Tel: +44-1635-562258, Fax: +44-1635-562281 -- If all else fails, read the instructions and the release notes. Join Infuse, the UK Informix User Group at http://www.infuse.org.uk/