View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Error Message : ‘/bin/bash: routine.e : command not found’

nelly wrote on May 08, 2008

I just installed the new iraf version v2.14 on my Suse 9.2,
things seem to be working ok...
However when I tried to run a routine (by typing '!routine.e'), it gave this error message
'/bin/bash: routine.e : command not found' .
The routine.e is present in the same directory from where iraf was launched, it was compiled using 'fc routine.f' and it created the excecutable 'routine.e'.
If I try typing simply 'routine.e' (without the '!') the error message becomes :'ERROR: package 'routine' not found'.

ps: iraf was installed as in instructions from the user account 'iraf' which has a csh shell, but I launched it from my user account which has a bash shell.

Any idea??
Thanks!

Mike Fitzpatrick wrote on May 08, 2008

The '!' executes the command in a spawned shell, the 'command not found' is telling you the command isn't included in your $PATH. You can either adjust your path, or else run it as "!./routine.e" to force the execution of the file in the current directory (or else add the '.' directory to your PATH).

Cheers,
-Mike

nelly wrote on May 08, 2008

Thanks Mike!
It works both ways, I wasn't setting the path correctly, as I am used to a csh shell...

Nelly

Last post on May 08, 2008