Welcome to iraf.net Friday, May 17 2024 @ 05:24 AM GMT
jcl |
01/12/2007 05:11PM (Read 4295 times)
|
|
|
Status: offline
Registered: 08/24/2006
Posts: 7
|
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
imutillogoutThe result is ecl> ERROR: use `logout' to log out of the CLIt gives that same error 8 times and then logs out.Anyone have any idea why this is not working?Thanks,Jessica
|
|
|
|
fitz |
01/12/2007 05:11PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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.htmlCheers,
-Mike
|
|
|
|
| |
|
Content generated in: 0.07 seconds |
|