Re: spawn not working [message #84315 is a reply to message #84314] |
Wed, 15 May 2013 02:03   |
anand
Messages: 11 Registered: December 2008
|
Junior Member |
|
|
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
|
|
|