Welcome to iraf.net Thursday, May 09 2024 @ 10:35 PM GMT
nialld |
04/10/2017 04:30PM (Read 1344 times)
|
|
|
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?
|
|
|
|
fitz |
04/11/2017 04:41PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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
|
|
|
|
nialld |
04/13/2017 01:36PM
|
|
|
Status: offline
Registered: 04/10/2017
Posts: 3
|
|
|
|
|
nialld |
04/13/2017 01:37PM
|
|
|
Status: offline
Registered: 04/10/2017
Posts: 3
|
Thanks,
cl -o test.cl
works perfectly
|
|
|
|
| |
|
Content generated in: 0.15 seconds |
|