View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

running cl scripts on macintel

jcl wrote on Jan 12, 2007

Hi! I am trying to run a cl script from the terminal command line (e.g. cl < script.cl) on a mac book pro and it doesn't work. I created just a simple test script to test:

images
imutil

logout

The result is

ecl> ERROR: use `logout' to log out of the CL

It gives that same error 8 times and then logs out.

Anyone have any idea why this is not working?

Thanks,

Jessica

Mike Fitzpatrick wrote on Jan 12, 2007

The 'use logout...." message is printed whenever the CL sees an EOF it isn't expecting. When running a CL script from the unix prompt via redirection, it's important to remember that all task input is redirected as well, so any task prompts (e.g. for parameters) will be answered by the next line in the command file. Eventually this could cause the EOF to the seen and so the message appears.

I can't explain why your three-line example would do it unless there were junk characters in the file or you somehow had the 'cl' command aliased. Note that if you did this from a directory containing a login.cl file that might play a part as well since the 'cl' command would still try to start an iraf session. If you really want a host scripting capability, see more information at http://iraf.noao.edu/iraf/web/new_stuff/cl_host.html

Cheers,
-Mike

Last post on Jan 12, 2007