Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Obnoxio The Clown — — source: Informix-list mailing list archive (1991-1998)
From: "Mario R. Canto" <mcanto@intec.unl.edu.ar>
>
>Obnoxio The Clown escribis:
> >
> > From: "Tim Lim" <tim_lim@exe.com.au>
> > >
> > >I have a need of get the UNIX process ID of my running 4GL program.
> > >
> > >Anyone has a known answer?
> >
> > It's ugly, but:
> >
> > CREATE TEMP TABLE x (pidno int)> > RUN "echo $$ > /tmp/someuniquename"
> > LOAD FROM /tmp/someuniquename INSERT INTO temptable> >
> > and there you go.
>
>This way you obtain the PID of the child process.
Yes, I already confessed to my shameful stupidity.
>The best way (that I know) without using a C function includded in the
>runner, is:
>
>$ fglgo myprog.4gi $$ # (passing the process Id as first argument)>
>and inside the prog
>...
>INTEGER pid
>...
>LET pid = fgl_argval(1)
arg_val(1)
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.