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 #29027] Wed, 30 January 2002 03:55 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
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? :)
>
> Thanks,
> Ken Mankoff
>

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.

--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[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: Thu Oct 09 14:59:47 PDT 2025

Total time taken to generate the page: 1.28230 seconds