Re: running informix 4gl program on unix box from windows?
Posted in 1997
Maxim B Ioffe wrote: > > hi. > I am trying to setup the following: > As user clicks a button in my VB/MSAccess application, i somehow run an > informix 4gl program. If program finishes ok, i ftp results back to PC, > or connect to informix database with ODBC and continue processin of the > data with my windows application. > My main problems are > 1. how to start that informix program? Assume, that program have command > line arguments, but don't have any forms or input screens. A successful way we have done something like this is to insert a row into a table with an insert trigger that calls a stored procedure that does a system call to run the 4GL program. The 4gl program can then either get command line parameters or fetch parameters from the table. > 2. how to get exit status from unix? How to get error message back to > PC? Have the 4gl program insert rows onto another table reporting exit status and error messages if any. The windows program can go into a loop to fetch from that table, waiting for return status of some sort. -- //////////////// ======================================================= ////////// // Dennis J. Pimple Informix Software, Inc. ////// / /// Principal Consultant 5299 DTC Blvd Suite 740 ///// // //// dennisp@informix.com Englewood CO 80111 //// // ///// /// // ////// recept: 303-850-0210 // // /////// direct: 303-740-5611 Opinions expressed are mine, / /////////// fax: 303-843-6408 and do not necessarily //////////////// http://www.informix.com reflect those of my employer