View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Problem running executables from IRAF command line

avi wrote on Dec 24, 2009

I am unable to run simple Fortran and C executables from the IRAF command line. They are properly defined in my login.c file. The error I get is:

ERROR: Abnormal termination of child process '??'

Those executables run OK when I call them using "!", meaning when they are ran from the shell. For example, when running a simple program that writes "hello" to the screen, I get:

cl> !./hello
hello
cl> hello
ERROR: Abnormal termination of child process '??'
cl>

Using ecl gives exactly the same result. I am using IRAF 2.13-BETA2 on a Linux (ubuntu) machine.

Any helpful ideas would be highly appreciated

Avi

Mike Fitzpatrick wrote on Dec 24, 2009

How are you declaring the task? It should be something like


cl> task $hello = $foreign


And the 'hello' command must be in the path declared by your .cshrc/.bashrc file. The '$foreign' says this is not an iraf command, otherwise the CL is trying to talk to it as a child process and can't.

avi wrote on Dec 24, 2009

Thanks for drawing my attention to this. On the old machine I declared it simply as another IRAF user script and it worked fine there. On my new machine it did not work, and changing to "foreign" made it run OK.

So now I can move to solving world hunger, or world peace, or any other similar small problem...

Avi

Last post on Dec 24, 2009