Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windows only display on first run of X11



Hi Don.

Sorry - my earlier explanation was poorly worded.  Some clarification:

These aren't commands that get automatically executed at launch of X11. They're simply quick ways for us to get an xterm window on a remote machine. Your example of an ssh command is one I'd likely put into a customized 'Applications' menu under X11. (Of course, then I'd have to set up ssh on the Sun boxes...)

The first time I run X11 after boot, I can get a local xterm. I can also use the 'Applications' menu items we have, and they work (i.e. the new xterm window appears, mid-rlogin to the remote sun machine).

If I then quit and relaunch X11, I can still get local xterms. However, the commands we've added to the 'Applications' menu no longer work - if we use one, nothing apparently happens (no xterm window at all).

Hmmm...after restart, if I simply type the 'xterm ...' command in a local xterm, it works (i.e. I get a new xterm window, prompting me for a password on the remote sun machine.) Hmmm...

Logout and login again doesn't make any difference. It seems to require a reboot to restore the initial behaviour.

Funny that the commands in the menu work the first time X11 is launched after boot, and not afterwards.

If I replace the '-exec rlogin <name>' with '-exec xclock', xclock eventually appears on my display (along with the xterm window it was launched from).

We actually use csh on the macs and suns - some of our software is intended to run in csh, and consistency is a good thing.

I'll look into my environmental variables on local xterms some more.

Thanks!

CDEJ

Don MacQueen wrote:
Good thing you asked for suggestions, not solutions...

As far as I know, items in the 'Applications' menu don't automatically get executed when X11.app is launched. But when you say "If we quit X11 and relaunch it, the xterm window no longer appears." it sounds as if the you're saying the do get automatically executed. Is that the case?

In the context of my above question, are you sure that it is the command in the Applications menu that isn't working? Do you have a similar one in a .xinitrc file -- because one there would get executed at startup -- and maybe that's the command that only works the first time?

After you relaunch X11.app, can you start a local xterm?

If you can start a local xterm, what happens if you type that command in it?

What if you logout and login instead of rebooting?

How about if you reverse the order -- rlogin first and then start an xterm on the remote machine?
I do this with ssh, like this:
ssh -f -X remote.host xterm -bg lightsalmon -title WhatEver
If you never solve the problem, perhaps that would be an acceptable work-around.


Have you checked all your environment variables in both contexts, and compared them?

What if you change the -exec rlogin to something innocuous, such as -exec xclock ?
(not that I expect that to reveal much, but if xclock works while rlogin doesn't, that would seem to eliminate a whole class of causes)


10.2 is fairly old. Somewhere along the line Apple changed the default shell from tcsh to some other shell (bash, I think), and if I remember correctly, tcsh was still the default in 10.2 (but the memory is definitely hazy). Check your shell initialization scripts.

-Don

At 12:02 PM -0400 8/31/05, Chris Jacob wrote:

Hi there.

We've just switched to using X11 on Tiger (10.4.2), having used OS X 10.2.n until now.

We use X11 to get access to a couple of Sun machines. We have customized the 'Applications' menu in X11 with lines like:

xterm -ls -display crispin:0 -tn vt100 -rw -fn 9x16 -sb -rightbar -fb helvetica_bold14 -title 'hudson xterm' -exec rlogin hudson &

so we end up with an xterm window rlogged in to the remote sun machine.

This used to work perfectly. Now, it works for only the first time we run X11 on one of our new macs. If we quit X11 and relaunch it, the xterm window no longer appears. A reboot fixes the problem temporarily.

Any suggestions?

Thanks,

Chris J.


--
Chris Jacob cjacob @ county.oxford.on.ca
GIS Analyst http://maps.county.oxford.on.ca
County of Oxford GIS - Corporate Services
Woodstock, Ontario t. +519.539.9800 x3176
Canada f. +519.537.5513
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden


This email sent to email@hidden




--

Please email all support requests to:    email@hidden

--
Chris Jacob                                 cjacob @ county.oxford.on.ca
GIS Analyst                              http://maps.county.oxford.on.ca
County of Oxford GIS - Corporate Services
Woodstock, Ontario                                t. +519.539.9800 x3176
Canada                                            f. +519.537.5513
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >windows only display on first run of X11 (From: Chris Jacob <email@hidden>)
 >Re: windows only display on first run of X11 (From: Don MacQueen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.