Unable to run cl scripts
nialld wrote on Apr 10, 2017
Hi, I've hit a bit of a problem with IRAF scripts. I previously wrote a bunch of .cl scripts (i.e. lists of IRAF commands). These used to run by typing
cl < test.clHowever now cl will start, list the basic packages and then just hang. Even if my script is something as simple as
noao
print "hello"it still hangs.
pasting these instructions into the iraf command line works fine, it is just running from script that is the problem
Any idea what is going wrong?
Mike Fitzpatrick wrote on Apr 11, 2017
The CL (actually the ECL or VOCL depending on your version) is hanging at the "stty xgterm" command in the login.cl file because of the input redirection. Even if you don't have a login.cl in the current directory, the system may be picking up the global one from your $HOME/.iraf/login.cl file.
To fix it, you can either create an empty login.cl in the same directory as the script (e.g. "touch login.cl"), comment out the 'stty' command from your login.cl, or else use the original version of the CL that doesn't have this problem. For example
% cl -o
nialld wrote on Apr 13, 2017
Thanks,
cl -o
nialld wrote on Apr 13, 2017
Thanks,
cl -o test.cl
works perfectly
Last post on Apr 13, 2017