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

Home » Public Forums » archive » Problem with SPAWN()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problem with SPAWN() [message #33767] Mon, 20 January 2003 16:18 Go to previous message
sciprogrammer is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wavelet analysis for electrochemical noise measurements(ENM) during corrosion...
Next Topic: writing multi-column text files

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

Current Time: Wed Oct 08 19:10:25 PDT 2025

Total time taken to generate the page: 0.00412 seconds