Welcome to iraf.net Monday, May 13 2024 @ 04:10 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 host cl scripting capability
   
duvall
 11/01/2007 06:22PM (Read 3894 times)  
+++--
Chatty

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

 
Profile Email
 Quote
fitz
 11/01/2007 06:22PM  
AAAAA
Admin

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

 
Profile Email
 Quote
duvall
 11/01/2007 06:22PM  
+++--
Chatty

Status: offline


Registered: 03/08/2006
Posts: 59
Great!

 
Profile Email
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login