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

Home » Public Forums » archive » Re: Problem with SPAWN()
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: Problem with SPAWN() [message #33765] Mon, 20 January 2003 23:44
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
sciprogrammer@hotmail.com (Justin Burruss) writes:


> 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?

Greetings--

I remember a friend having this or a similar problem, and it was
ultimately traceable to not being able to write in the /tmp directory.
For some reason IDL writes something to the /tmp directory sometimes
(all the time?) when spawning a shell. If not this, then something
like this, i.e. check for something that is writeable in a normal
environment, but is not in your captive environment.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: bandpass filter
Next Topic: dialog_pickfile and the 'file' keyword

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

Current Time: Wed Oct 08 17:36:33 PDT 2025

Total time taken to generate the page: 0.00511 seconds