Welcome to iraf.net Monday, May 13 2024 @ 04:10 AM GMT
duvall |
11/01/2007 06:22PM (Read 3894 times)
|
|
|
Status: offline
Registered: 03/08/2006
Posts: 59
|
I was trying to make use of the "host cl scripting capability" as described in the document by the same name. I couldn't make my own stuff work so I tried one of the examples in the document and could not get it to work. The example (with slight modifications for where we have iraf):#!/usr/local/iraf/iraf/bin.redhat/cl.e -f
set imdir="HDR$pixels/"
logver ="IRAF V2.11 May 1997"
set arch=.redhat
images
imutil
printf ("imarith %s\n", args) | cl()
logoutWhen I execute this with the following command line:
./test dev\$pix \* 10 newimg.fits
I get the following response:
PANIC in `/usr/local/iraf/iraf/bin.redhat/x_images.e': Memory has been corrupted
and it goes into an infinite loop.My system is a linux one x86_64. Iraf works fine in general but I need to supply some software to others that needs to be executed from the host.
Thanks.
Tom Duvall
|
|
|
|
fitz |
11/01/2007 06:22PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Try adding the command limit stacksize unlimitedto your .cshrc environment (or "ulimit -s unlimited" to your Bash environment if you use that). This works around some memory changes in recent v2.6 kernels and is done automatically in the CL startup script, but with #!cl scripts it needs to be part of your linux environment. Cheers,
-Mike
|
|
|
|
duvall |
11/01/2007 06:22PM
|
|
|
Status: offline
Registered: 03/08/2006
Posts: 59
|
Great!
|
|
|
|
| |
|
Content generated in: 0.10 seconds |
|