If your platform is unix, you could do something like this:
COMMAND="/usr/sbin/fuser phpath/RUN*"
COMMAND='SH -C "':COMMAND:'"'
CRT COMMAND
EXECUTE COMMAND CAPTURING RESULTS
MORE=(RESULTS#'')
LOOP WHILE MORE DO
REMOVE LINE FROM RESULTS SETTING MORE
FNAME=FIELDS(LINE,':',1)
PIDS=OCONVS(EREPLACE(FIELDS(LINE,':',2),' ',@AM),'MCN')
LOCATE(MYPID,PIDS;PTRX) ELSE PTRX=0
IF PTRX THEN
PRINT FNAME
MORE=0
END
REPEAT
I'd imagine this would be slow if the PH directory is large. If it were me,
I'd probably capture the name from SQUAWK and feed it into the program.
Just my 2 pennies.
-------------- Original message --------------
From: "Kevin King" <[EMAIL PROTECTED]>
> Is there a way for a phantom to know the _PH_ item that it's output is
> being redirected to?
>
> -Kevin
> [EMAIL PROTECTED]
> http://www.PrecisOnline.com
>
> ** Check out our FREE support forum at
>
> http://www.PrecisOnline.com/forum/.
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/