Problem with SPAWN() [message #33767] |
Mon, 20 January 2003 16:18  |
sciprogrammer
Messages: 2 Registered: January 2003
|
Junior Member |
|
|
I'm having trouble with the SPAWN() command. When I load-level IDL
using lsrun (part of the LSF suite of load-balancing software) I see a
strange problem where calls to SPAWN() produce a "no such file or
directory" error. This happens with even very simple commands.
Here's an example:
Start with a very simple .pro file that spawns the pwd command:
% cat test2.pro
spawn,'/bin/pwd'
exit
Load-level IDL using lsrun:
% lsrun -m "lsf002" idl test2
[...usual IDL startup message...]
% SPAWN: Error managing child process.
No such file or directory
That fails, but if I load-level the pwd command directly it works:
% lsrun -m "lsf002" /bin/pwd
/u/burruss
I can also get this to work if I use SPAWN() with the NOSHELL keyword
as in this example:
spawn,['/bin/pwd'],/noshell
exit
The only thing I can think of is that perhaps the "no such file or
directory" message comes from IDL trying to start up a non-existent
shell. Does anyone have any ideas about this? How does SPAWN()
select which shell to start?
The platforms I'm using are Tru64 5.1, HP-UX 11i, and RedHat 7.3
Linux. I'm using IDL version 5.5.
Justin
|
|
|
Re: problem with spawn [message #36099 is a reply to message #33767] |
Sun, 17 August 2003 21:56  |
mads
Messages: 15 Registered: January 2003
|
Junior Member |
|
|
"TIAN Yunfeng" <tianyf_cn@yahoo.com.cn> wrote in message
news:42e9d2cb.0308171907.74fddfcb@posting.google.com...
> It seems that the host operating system can not find the `xgui` commmand.
Check
> the $PATH variable of your OS. If you use Linux, you can do like this:
> echo $PATH
> If 'xgui' path is not included in $PATH, you should add it yourself by
editing
> the login script of your shell( such as .cshrc for CSH in your home
directory).
>
worked like a charm.........thanks a lot Robert and Tian ............
bye
M
>
> Tian.
>
>
> Robert Moss <rmmoss@cox.net> wrote in message
news:<TkN%a.7609$uh6.2806@lakeread05>...
>> mads wrote:
>>> hi,
>>> I am trying to train a network using SNNS( I am new to SNNS).Now I
have
>>> heard of some batch processing thats possible in SNNS and I have
posted abt
>>> that in the AI group. I would like it if anyone in this group has info
on
>>> that.
>>> My actual problem is : when i type spawn, 'xgui' i get the following
error :
>>> bash:xgui command not found. what is the problem? i have already set
up snns
>>> using swsetup snns.
>>> bye
>>> m
>>>
>>>
>>
>> Sounds like xgui is not in your !path. Alternatively you could create
>> an alias for xgiu that contains the full file specification for its
>> location.
>>
>> Robert
|
|
|
Re: problem with spawn [message #36100 is a reply to message #33767] |
Sun, 17 August 2003 20:07  |
tianyf_cn
Messages: 19 Registered: November 2002
|
Junior Member |
|
|
It seems that the host operating system can not find the `xgui` commmand. Check
the $PATH variable of your OS. If you use Linux, you can do like this:
echo $PATH
If 'xgui' path is not included in $PATH, you should add it yourself by editing
the login script of your shell( such as .cshrc for CSH in your home directory).
Tian.
Robert Moss <rmmoss@cox.net> wrote in message news:<TkN%a.7609$uh6.2806@lakeread05>...
> mads wrote:
>> hi,
>> I am trying to train a network using SNNS( I am new to SNNS).Now I have
>> heard of some batch processing thats possible in SNNS and I have posted abt
>> that in the AI group. I would like it if anyone in this group has info on
>> that.
>> My actual problem is : when i type spawn, 'xgui' i get the following error :
>> bash:xgui command not found. what is the problem? i have already set up snns
>> using swsetup snns.
>> bye
>> m
>>
>>
>
> Sounds like xgui is not in your !path. Alternatively you could create
> an alias for xgiu that contains the full file specification for its
> location.
>
> Robert
|
|
|
Re: problem with spawn [message #36103 is a reply to message #33767] |
Sun, 17 August 2003 08:39  |
Robert Moss
Messages: 74 Registered: February 1996
|
Member |
|
|
mads wrote:
> hi,
> I am trying to train a network using SNNS( I am new to SNNS).Now I have
> heard of some batch processing thats possible in SNNS and I have posted abt
> that in the AI group. I would like it if anyone in this group has info on
> that.
> My actual problem is : when i type spawn, 'xgui' i get the following error :
> bash:xgui command not found. what is the problem? i have already set up snns
> using swsetup snns.
> bye
> m
>
>
Sounds like xgui is not in your !path. Alternatively you could create
an alias for xgiu that contains the full file specification for its
location.
Robert
|
|
|