Re: Passing a value from Unix into 4GL ?
Posted in 2004
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
You can do it using a temporary file created in the executed script then loaded to a temporary table in 4gl. I commited an example to the aubit4gl test/exanple repository as test 1060. You can see it with cvsweb at: http://cvs.sourceforge.net/viewcvs.py/aubit4gl/aubit4gltest/1060/ . S'rgio Ferreira > I am searching the net, but can't find an answer yet. > > > > How can I run a 4GL, that will run a Unix command, and then keep > > the result of the Unix command in a variable in the 4GL ? > > > > > > _Example: _ > > > > Let's say I have a script that does a word count (wc) on a file. > > I want to run this script from a 4GL program, and then use the result > > of the word count in the 4GL. > > > > Should be simple, but I don't know how ... > > > > > > > > > > > > Dirk Moolman > > Database and Unix Administrator > > MXGROUP > > > > > > "People demand freedom of speech as a compensation for the freedom of > thought which they seldom use." > > -Kierkegaard > > > > > ------------------------------------------------------------------------ > <<* ella for Spam Control *>> has removed *976* Spam messages and set > aside *515* Newsletters for me > You can use it too - and it's FREE! www.ellaforspam.com > <http://www.ellaforspam.com> > sending to informix-list