View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

batch job submission

Tom Duvall wrote on Apr 07, 2011

With v.14, I submit jobs to our batch queue with a small script that looks like:

#!/usr/local/iraf/iraf/bin.redhat/cl.e -f
cl </home/duvall/loginbatch.cl
hostname
date
string s0
s0 = mktemp ("temp_")
mkdir (s0)
cd (s0)
print (s0)
# (commands)
cd ("..")
rm ("-r ", s0)
date
logout

For v.15, I tried just changing the directory to linux64 instead of redhat.
I get the following error message:

ERROR: Cannot open connected subprocess (./x_system.e)
cl ()
cl ()
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.

Any idea what is going on?
Tom

Mike Fitzpatrick wrote on Apr 07, 2011

My guess is that you've still got an environment variable somewhere (e.g. the .cshrc, .profile or .bachrc, etc) that is still setting IRAFARCH and/or 'arch' to redhat. If you can't track this down then setting 'bin.redhat' symlinks to point to the 'bin.linux64' directories should also work.

Last post on Apr 07, 2011