comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Subject : locks, semaphores, and such
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Subject : locks, semaphores, and such [message #29110 is a reply to message #29027] Wed, 30 January 2002 15:18 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Wed, 30 Jan 2002, Nigel Wade wrote:

> Ken Mankoff wrote:
>> On Tue, 29 Jan 2002, Nigel Wade wrote:
>>> If you're going to spawn a process, why not base the directory name on
>>> the PID of the spawned process, and return the directory name to IDL? Two
>>> concurrent processes cannot have the same PID.
>>
>> This would work too... a brief expriment tells me that I do not know
>> how to capture a pid through IDL. Do you have any ideas (or code? :)
>
> Do you need to know the PID in IDL? I'd just return the directory name
> created by the spawned process. Output sent to stdout by a spawned process
> is returned to IDL in the final argument to the SPAWN command:
>
>>> spawn,'echo hello',result
>
> would return the output 'hello' in the variable result. So all you would
> need to do is echo the name of the directory created (and make sure that's
> all that the spawned process outputs) and you get what you need.
>

Hi,

The PID approach has solved it. I am now using this:

SPAWN, 'true', PID=PID

and then generating a directory off of a combination of the PID and
SYSTIME(1)

Thanks for the help,
Ken Mankoff

--
Kenneth Mankoff
LASP://303.492.3264
http://lasp.colorado.edu/~mankoff/
http://lasp.colorado.edu/snoedata/
http://lasp.colorado.edu/marsrobot/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Object graphics under Linux: are they supposed to be that slow?
Next Topic: Arithmetic error

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Dec 03 20:20:46 PST 2025

Total time taken to generate the page: 0.00249 seconds