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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: spawn not working [message #84314] Wed, 15 May 2013 02:15 Go to next 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
Re: spawn not working [message #84315 is a reply to message #84314] Wed, 15 May 2013 02:03 Go to previous messageGo to next message
anand is currently offline  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 Go to previous messageGo to next message
m_schellens is currently offline  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 Go to previous message
anand is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 13:58:50 PDT 2025

Total time taken to generate the page: 0.00594 seconds