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

Home » Public Forums » archive » Re: spawn not working
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: spawn not working [message #84314] Wed, 15 May 2013 02:15 Go to previous message
m_schellens is currently offline  m_schellens
Messages: 31
Registered: February 2005
Member
One way would be to assure that the path is set in your sswidl script.
If you do not have access to this, you could also set the path from within IDL:
SETENV,"PATH=/bin"
(replace /bin with the correct actual path (hint: use the output from PRINT,GETENV("PATH") when run under plain idl))

HTH,
Marc


Am Mittwoch, 15. Mai 2013 11:03:22 UTC+2 schrieb anand:
> you seemed to have hit the nail on the head. i had confused the IDL variable !PATH with the environment variable, getenv('path').
>
> IDL> help, getenv('path')
>
> returns a null string.
>
>
>
> could you also tell me the right way to fix it?
>
>
>
> Anand.
>
>
>
> On Wednesday, May 15, 2013 5:14:01 PM UTC+9, mschellens wrote:
>
>> Am Dienstag, 14. Mai 2013 03:24:32 UTC+2 schrieb anand:
>
>>
>
>>> Hi,
>
>>
>
>>>
>
>>
>
>>> I am using IDL 8.1 on ubuntu 12.10. Additionally, I use SolarSoft, which is a package containing several libraries relevant to solar physics. I have to initiate the SolarSoft in IDL by typing 'sswidl' at the command prompt and not the simple 'idl'.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> The problem I face is that while a simple "spawn, 'ls'" command works perfectly fine while running 'idl', in 'sswidl' the output I get is:
>
>>
>
>>>
>
>>
>
>>> IDL> spawn, 'ls'
>
>>
>
>>>
>
>>
>
>>> bash: ls: command not found
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I run the 'sswidl' in C-shell. Whereas 'idl' can be run in both C-shell and bash; and spawn works fine in both the shells.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> It is not simply about the spawn command, many other programs that run spawn are also not working. Hence, any help would be greatly appreciated.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Anand.
>
>>
>
>>
>
>>
>
>> Is the path environment variable set?
>
>>
>
>>
>
>>
>
>> Check with:
>
>>
>
>>
>
>>
>
>> PRINT,GETENV("PATH")
>
>>
>
>>
>
>>
>
>> Regards,
>
>>
>
>> Marc
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Non-intuitive result with !Null in Where()
Next Topic: Adding extra white in middle of colour bar

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

Current Time: Sat Oct 11 14:30:51 PDT 2025

Total time taken to generate the page: 0.31772 seconds