Welcome to iraf.net Sunday, June 25 2017 @ 05:14 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Unable to run cl scripts
   
nialld
 04/10/2017 04:30PM (Read 286 times)  
+----
Newbie

Status: offline


Registered: 04/10/2017
Posts: 3
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

PHP Formatted Code
cl < test.cl


However now cl will start, list the basic packages and then just hang. Even if my script is something as simple as

PHP Formatted Code
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?

 
Profile Email
 Quote
fitz
 04/11/2017 04:41PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 3965
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

 
Profile Email
 Quote
nialld
 04/13/2017 01:36PM  
+----
Newbie

Status: offline


Registered: 04/10/2017
Posts: 3
Thanks,
cl -o

 
Profile Email
 Quote
nialld
 04/13/2017 01:37PM  
+----
Newbie

Status: offline


Registered: 04/10/2017
Posts: 3
Thanks,
cl -o test.cl

works perfectly

 
Profile Email
 Quote
   
Content generated in: 0.31 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