<div class="gmail_quote">On Tue, Feb 23, 2010 at 3:38 PM, Germán A. Racca <span dir="ltr">&lt;<a href="mailto:german.racca@gmail.com">german.racca@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m running a program called IRAF to work with astronomical images, and<br>
it needs to use the graphic capabilities of an xterm, not<br>
gnome-terminal. So, I&#39;m trying to make a very simple script to start<br>
IRAF, but first I have to know if I&#39;m on an xterm (so it enters directly<br>
to IRAF) or a gnome-terminal (in this case the script must open an xterm<br>
before).<br></blockquote></div><br>This must be too easy, but I&#39;m going to say it anyway.  Why not always start xterm and run IRAF within it?<br clear="all"><br>-- <br>-jp<br><br>If you were a pirate, you know what would be the one thing that would really
make you mad?  Treasure chests with no handles.  How the heck are you supposed
to carry it?!
    
      <br><br><a href="http://deepthoughtsbyjackhandey.com">deepthoughtsbyjackhandey.com</a><br><br>