Welcome to iraf.net Saturday, April 20 2024 @ 06:07 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Iraf script from shell on Yosemite
   
jdownes
 11/01/2014 10:40AM (Read 1885 times)  
+----
Newbie

Status: offline


Registered: 10/25/2014
Posts: 2
Hello

It is probably a really basic question but I could not find any reference
in previous posts.

I recentelly installed IRAF v2.16.1 on OSX Yosemite. All the task I used
since the installation are working properly if I run them from the IRAF
prompt.

Now I am working with a shell script that runs an IRAF script through a
line like "ecl " string repeats
indefenetelly.

Do you know how to fix this problem?

Regards

Juan Jose

Here an example:

jdownes\$this->_split2($m[0])cl '. To run a
command or load a package, type its name. Type `bye' to exit a
package, or `logout' to get out of the CL. Type `news' to find out
what is new in the version of the system you are using.

Visit https://iraf.net if you have questions or to report problems.


*** Checking update status... Your IRAF system is up to date
*** Using global login file: /Users/jdownes/.iraf/login.cl
The following commands or packages are currently defined:

dataio. language. obsolete. softools. vo.
dbms. lists. plot. system.
images. noao. proto. utilities.

ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0]) ecl\$this->_split2($m[0])

 
Profile Email
 Quote
jdownes
 11/01/2014 10:51AM  
+----
Newbie

Status: offline


Registered: 10/25/2014
Posts: 2
Hello

It is probably a really basic question but I could not find any reference
in previous posts.

I recentelly installed IRAF v2.16.1 on OSX Yosemite. All the task I used
since the installation are working properly if I run them from the IRAF
prompt.

Now I am working with a shell script that runs an IRAF script through a
line like
PHP Formatted Code
ecl < script.cl
but it doesn't work. It sets the terminal to
xgterm, then IRAF starts correctelly but finally an ecl string
repeats indefenetely.

Do you know how to fix this problem?

Regards

Juan Jose

Here an example:

PHP Formatted Code
jdownes>cl < script.cl

setting terminal type to 'xgterm' ...

   NOAO/IRAF PC-IRAF Revision 2.16.1 EXPORT Mon Oct 14 21:40:13 MST 2013
      This is the EXPORT version of IRAF V2.16 supporting PC systems.


  Welcome to IRAF.  To list the available commands, type ? or ??.  To get
  detailed information about a command, type `help <command>'.  To run  a
  command  or  load  a  package,  type  its name.   Type  `bye'
to exit a
  package, or `logout' to get out  of the CL.    Type `news' to find  out
  what is new in the version of the system you are using.

  Visit https://iraf.net if you have questions or to report problems.


  ***  Checking update status... Your IRAF system is up to date
  ***  Using global login file:  /Users/jdownes/.iraf/login.cl
  The following commands or packages are currently defined:

      dataio.     language.   obsolete.   softools.   vo.
      dbms.       lists.      plot.       system.
      images.     noao.       proto.      utilities.

ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl> ecl>
 

 
Profile Email
 Quote
fitz
 11/18/2014 06:22AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

Sorry for the slow reply, I saw there was a reply to the post but didn't notice it was your own followup.

The problem appears to be caused by the "stty xgterm" command in your login.cl file, either the one in the current directory or the global login.cl in your $HOME/.iraf direcrory. Changing this to use 'xterm' instead (e.g. with a new MKIRAF or by manually editing the file) seems to allow the redirection to work as before.

You might also consider modifying the script to work as a host script, i.e. see http://iraf.noao.edu/iraf/web/new_stuff/cl_host.html

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