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

Home » Public Forums » archive » SPAWN bash commands
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
SPAWN bash commands [message #85962] Sat, 21 September 2013 15:36 Go to next message
stefan.meingast is currently offline  stefan.meingast
Messages: 30
Registered: June 2012
Member
Hey

I am working on some astronomical data reduction and some parts on my pipeline rely on calling executables which are normally called in a regular shell. SPAWN works very well for most cases, but some routines can't be executed correctly because they are missing some executables themselves.

For instance:

Calling Scamp (http://www.astromatic.net/software/scamp) can't download an external reference catalog and with Montage (http://montage.ipac.caltech.edu) I can't run the batch executables. They result in the error: [struct stat="ERROR", msg="No child program executable or program aborted"].

If I execute the same SPAWN command in the bash, it works fine, so here the executable is missing.

Does anyone know how I can make these calls work?

thanks :)
Re: SPAWN bash commands [message #85963 is a reply to message #85962] Sat, 21 September 2013 15:46 Go to previous messageGo to next message
stefan.meingast is currently offline  stefan.meingast
Messages: 30
Registered: June 2012
Member
Ah, one more thing:

This happens only in the IDLDE, when I login to IDL with the bash and then execute, it's fine...
Re: SPAWN bash commands [message #85964 is a reply to message #85962] Sat, 21 September 2013 18:37 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Stefan <stefan.meingast@gmail.com> wrote:
> Hey
>
> I am working on some astronomical data reduction and some parts on my
> pipeline rely on calling executables which are normally called in a
> regular shell. SPAWN works very well for most cases, but some routines
> can't be executed correctly because they are missing some executables themselves.
>
> For instance:
>
> Calling Scamp (http://www.astromatic.net/software/scamp) can't download
> an external reference catalog and with Montage
> (http://montage.ipac.caltech.edu) I can't run the batch executables. They
> result in the error: [struct stat="ERROR", msg="No child program
> executable or program aborted"].
>
> If I execute the same SPAWN command in the bash, it works fine, so here
> the executable is missing.
>
> Does anyone know how I can make these calls work?
>
> thanks :)

I'm guessing a system path issue. Try:

spawn, 'echo $PATH'

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
Re: SPAWN bash commands [message #85966 is a reply to message #85962] Sat, 21 September 2013 23:49 Go to previous message
stefan.meingast is currently offline  stefan.meingast
Messages: 30
Registered: June 2012
Member
Ah you are right. The system variable is is fully set in the bash, but not in the IDLDE. Now, do you also know how I can fix this? :)

thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: stdev or stddev; locating procedures/functions
Next Topic: IDL log scale issues

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

Current Time: Wed Oct 08 11:45:52 PDT 2025

Total time taken to generate the page: 0.00518 seconds