Re: spawn not working [message #84314] |
Wed, 15 May 2013 02:15  |
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
|
|
|
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
|
|
|
Re: spawn not working [message #84318 is a reply to message #84315] |
Wed, 15 May 2013 01:14   |
m_schellens
Messages: 31 Registered: February 2005
|
Member |
|
|
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
|
|
|
Re: spawn not working [message #85617 is a reply to message #84314] |
Thu, 22 August 2013 00:45  |
anand
Messages: 11 Registered: December 2008
|
Junior Member |
|
|
Hi,
sorry for the belated reply. your comments helped me sort the isse. as a result IDL as well SSWIDL work perfectly fine. thanks.
Anand.
|
|
|