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

Home » Public Forums » archive » Re: IDL and UNIX setenv
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL and UNIX setenv [message #25427] Mon, 18 June 2001 01:55 Go to next message
nmw is currently offline  nmw
Messages: 18
Registered: January 1995
Junior Member
In article , "Daniel Peduzzi" <peduzzi@mediaone.net> writes:
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft Outlook Express 4.72.3110.1
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
> Message-ID: <yAgX6.3367$P46.2050452@typhoon.ne.mediaone.net>
> Date: Mon, 18 Jun 2001 05:46:06 GMT
> NNTP-Posting-Host: 24.128.251.99
> X-Complaints-To: abuse@mediaone.net
> X-Trace: typhoon.ne.mediaone.net 992843166 24.128.251.99 (Mon, 18 Jun 2001 01:46:06 EDT)
> NNTP-Posting-Date: Mon, 18 Jun 2001 01:46:06 EDT
> Organization: Road Runner
> Xref: leicester comp.lang.idl-pvwave:11504
>
> I have an executable (compiled from C) which I'd like to
> run from within IDL using SPAWN. However, I'd like to refer
> to the executable without prepending a pathname:
>
> IDL> spawn, "myprog", result
>
> instead of
>
> IDL>spawn,"/usr1/guest/bin/myprog", result
>
> I tried to append the "/usr1/guest/bin/" directory to my UNIX
> path before starting an IDL session, but the path information
> doesn't seem to be propagated into IDL.
>

I'm pretty sure it uses PATH to determine the location of the
program.

Try checking your PATH carefully to make sure that you haven't added
it incorrectly. If you can run "myprog" from the command line you
should be able to run it from within IDL.

What do you get if you run :

IDL> spawn,'echo $PATH'

--
-----------------------------------------------------------
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
Re: IDL and UNIX setenv [message #25521 is a reply to message #25427] Mon, 18 June 2001 08:01 Go to previous message
nmw is currently offline  nmw
Messages: 18
Registered: January 1995
Junior Member
In article , "Daniel Peduzzi" <peduzzi@mediaone.net> writes:
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft Outlook Express 4.72.3110.1
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
> Message-ID: <OAoX6.3783$P46.2298305@typhoon.ne.mediaone.net>
> Date: Mon, 18 Jun 2001 14:52:30 GMT
> NNTP-Posting-Host: 24.128.251.99
> X-Complaints-To: abuse@mediaone.net
> X-Trace: typhoon.ne.mediaone.net 992875950 24.128.251.99 (Mon, 18 Jun 2001 10:52:30 EDT)
> NNTP-Posting-Date: Mon, 18 Jun 2001 10:52:30 EDT
> Organization: Road Runner
> Xref: leicester comp.lang.idl-pvwave:11510
>
>
> Nigel Wade wrote in message <9gkfmi$jgv4$2@rook.le.ac.uk>...
>>
>> In article , "Daniel Peduzzi" <peduzzi@mediaone.net> writes:
>>>
>>> I tried to append the "/usr1/guest/bin/" directory to my UNIX
>>> path before starting an IDL session, but the path information
>>> doesn't seem to be propagated into IDL.
>>
>> I'm pretty sure it uses PATH to determine the location of the
>> program.
>>
>> Try checking your PATH carefully to make sure that you haven't added
>> it incorrectly. If you can run "myprog" from the command line you
>> should be able to run it from within IDL.
>>
>
> That's what I thought, too. Before I started IDL, I verified that
> I could run "myprog" from any directory as a result of extending
> the path correctly. But subsequently, I'm not able to SPAWN the
> program from within IDL without indicating its exact location.
>
>> What do you get if you run :
>>
>> IDL> spawn,'echo $PATH'
>>
>
>
> I get the UNIX pathname BEFORE I extended the path. Not only that,
> but if I try to extend the PATH environment variable from within
> IDL, I still can't run "myprog". Boy, am I confused!
>
> Dan
>
>


What shell are you using?

I notice that in the subject you mention setenv which implies you
are using csh/tcsh. AFIAK spawn will use sh so there may be some
difference between the path you set in csh/tcsh and the path used
by sh.

Are you actually setting and exporting PATH?

--
-----------------------------------------------------------
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
Re: IDL and UNIX setenv [message #25523 is a reply to message #25427] Mon, 18 June 2001 07:52 Go to previous message
Daniel Peduzzi is currently offline  Daniel Peduzzi
Messages: 29
Registered: June 1999
Junior Member
Nigel Wade wrote in message <9gkfmi$jgv4$2@rook.le.ac.uk>...
>
> In article , "Daniel Peduzzi" <peduzzi@mediaone.net> writes:
>>
>> I tried to append the "/usr1/guest/bin/" directory to my UNIX
>> path before starting an IDL session, but the path information
>> doesn't seem to be propagated into IDL.
>
> I'm pretty sure it uses PATH to determine the location of the
> program.
>
> Try checking your PATH carefully to make sure that you haven't added
> it incorrectly. If you can run "myprog" from the command line you
> should be able to run it from within IDL.
>

That's what I thought, too. Before I started IDL, I verified that
I could run "myprog" from any directory as a result of extending
the path correctly. But subsequently, I'm not able to SPAWN the
program from within IDL without indicating its exact location.

> What do you get if you run :
>
> IDL> spawn,'echo $PATH'
>


I get the UNIX pathname BEFORE I extended the path. Not only that,
but if I try to extend the PATH environment variable from within
IDL, I still can't run "myprog". Boy, am I confused!

Dan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Map point
Next Topic: XML-IDL Interface

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

Current Time: Wed Oct 08 15:10:26 PDT 2025

Total time taken to generate the page: 0.00597 seconds