Welcome to iraf.net Thursday, April 25 2024 @ 08:29 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 xgterm problems
   
JCab
 08/08/2007 03:32PM (Read 6919 times)  
+----
Newbie

Status: offline


Registered: 08/02/2006
Posts: 12
I am now having a devil of a time with a problem with xgterm OUTSIDE of IRAF. Just to be clear, I am running the current version of MacOS (10.4.10) using Apple's current version of X11 and using the Scisoft PPC beta installation of IRAF and X11IRAF. The issue is that the folks at Harvard have set up their reduction scripts for the Hectospec on the MMT to call IRAF routines from shell scripts to allow parallel processing. Here's the interesting bit. I have run some of their software under IRAF directly and it worked properly (running in xgterm). However, when run from their script under xterm with Tek emulation, this particular IRAF command upchucks. So I thought to just replace the call for xterm with xgterm. This crashes nastily as I show here:[By Your Command]> xgterm -e callhectospec hcal comp.ms
Error in message to server, line 6: send: could not find object gterm
while executing
"send gterm setGterm"
xgterm Xt error: Shell widget gterm-iraf has zero width and/or heightI have looked on Google and found that people seem to believe the solution is to remove the /private/etc/X11/app-defaults/XGterm file, but when I do, I get a non-interactive Xgterm window (mouse clicks and the like don't take). I have also played with the suggestion to set the environmental variable DYLD_FORCE_FLAT_NAMESPACE to no effect. Have anyone here heard anything else about how to resolve this?

 
Profile Email
 Quote
JCab
 08/08/2007 03:32PM  
+----
Newbie

Status: offline


Registered: 08/02/2006
Posts: 12
At the suggestion of Marcos Huerta, I decided to try installing the v1.5DEV binaries of xgterm, since I believe SciSoft OSX used version 1.3. Still no joy in mudville, xgterm still strikes out with a zero width and/or height error.

 
Profile Email
 Quote
fitz
 08/08/2007 03:32PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
What kind of script is 'callhectospec', some unix shell or a #!cl script? If the latter, does it do anything to initialize the environment (in this case the 'stdgraph' or some 'stty' command)? Are there any resources set in your .Xdefaults file dealing with xgterm? If the script isn't too long could you post at least the first parts of it dealing with the initialization. As a test, you might try executing the #!cl script:[code:1:91de95958b]
#!/iraf/iraf/bin.macosx/cl.e -f
plot
reset stdgraph = "xgterm"
implot ("dev$pix")
logout
[/code:1:91de95958b]Assuming the iraf path is correct, make it executabel and run with the same 'xgterm -e' syntax.I've seen similar problems with incompatible builds of say ximtool and an old X11 system, even with the v1.5 version so you might try a local build of the v1.5 sources (just use "xmkmf ; make World") .
-Mike

 
Profile Email
 Quote
JCab
 08/08/2007 03:32PM  
+----
Newbie

Status: offline


Registered: 08/02/2006
Posts: 12
[quote:ebe0ae940a="fitz"]What kind of script is 'callhectospec', some unix shell or a #!cl script? [/quote:ebe0ae940a][i:ebe0ae940a]callhectospec[/i:ebe0ae940a] is a "ecl" script, its path is set to [code:1:ebe0ae940a]#!/scisoft_beta/iraf-2.12.2/irafbin/bin.macosx/ecl.e -f[/code:1:ebe0ae940a]which is the location of my ecl binary. I did check and your snippet of code worked. For that reason I started digging into the callhectospec script (which does initialize lots of environmental variables via stty, but ASSUMES a xterm, not an xgterm). Sure enough, replacing the following block of code:[code:1:ebe0ae940a]else if (envget("TERM") == "xterm") {
stty xterm
} [/code:1:ebe0ae940a]with [code:1:ebe0ae940a]else if (envget("TERM") == "xterm") {
stty xgterm
} [/code:1:ebe0ae940a]Now my question is, is there any way to detect a 'xgterm' environment versus 'xterm' environment, just for the purposes of scripting this.[quote:ebe0ae940a="fitz"]I've seen similar problems with incompatible builds of say ximtool and an old X11 system, even with the v1.5 version so you might try a local build of the v1.5 sources (just use "xmkmf ; make World") . [/quote:ebe0ae940a]Actually, build from source failed, when I grabbed the X11IRAF 1.5DEV source, xgterm failed to compile... I did not spend a lot of time trying to figure out why.

 
Profile Email
 Quote
fitz
 08/08/2007 03:32PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
TERM is a general unix/linux environment variable that points to some entry in the system terminfo/termcap database, but since 'xgterm' isn't going to be in that database setting the TERM=xgterm will only confuse other apps and wouldn't be recognized by the '-tn' commandline flag to set TERM automatically anyway. A not-so-foolproof method would be to search the process table with a 'ps' command to see if an xgterm is running on the current tty, but in a pipeline environment like yours it's generally easier to be sure you're spawning an xgterm directly.Be careful though of other initializations such as redirecting from some global loginuser.cl to pick up definitions.[quote:eb07ca37ea]Actually, build from source failed, when I grabbed the X11IRAF 1.5DEV source, xgterm failed to compile... I did not spend a lot of time trying to figure out why.[/quote:eb07ca37ea]
I'd have to see the spool file to comment, but the binaries are on the site.-Mike

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