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

Home » Public Forums » archive » Re: idl process id
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: idl process id [message #11543 is a reply to message #11536] Tue, 21 April 1998 00:00 Go to previous messageGo to previous message
Vap User is currently offline  Vap User
Messages: 31
Registered: April 1998
Member
korpela@islay.ssl.berkeley.edu (Eric J. Korpela) writes:

>
> In article <6hgr8e$qs3$1@nnrp1.dejanews.com>, <csaute3@alumni.umbc.edu> wrote:
>> I don't want to do "ps | grep idl" because of the result.
>>
>> IDL> spawn,'ps | grep idl',result,/sh
>> IDL> print, result
>> 23847 pd S 0:02 /usr/local/rsi/idl_4/bin/bin.sunos.4.1/idl
>> 23852 pd S 0:00 sh -c ps | grep idl 23853 pd S 0:00 grep idl
>
> Try this:
>
> IDL> spawn,'ps | grep idl | grep -v grep',result,/sh
> IDL> print,result
> 23847 pd S 0:02 /usr/local/rsi/idl_4/bin/bin.sunos.4.1/idl
> IDL> print,long(result)
> 23847
>
> If you really feel lucky you can try something like......
>
> IDL> ; check your libc version before doing this!
> IDL> result=call_external('/lib/libc.so.1.9','getpid')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ; Great stuff!
> IDL> print,result
> 23847
>

Eric, this is truly amazing. One of the best tips I've seen! Thanks!

I don't speak for JPL, it doesn't speak for me.
Well, not all the time, at least.
William Daffer <vapuser@haifung.jpl.nasa.gov>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: object creation question
Next Topic: Re: Question. CW_PDMENU

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

Current Time: Fri Oct 10 16:04:21 PDT 2025

Total time taken to generate the page: 0.24220 seconds