On Oct 31, 2007, at 3:52 PM, Greg Parker wrote:
On Oct 31, 2007, at 3:06 PM, Bobby Jones wrote:
The scenario I was thinking about is ssh from Tiger to Tiger
once you remove DISPLAY to accomodate Leopard. I had DISPLAY
exported in /etc/bashrc for all my Tiger installs. . . but
Leopard obviously doesn't play well with that.
So now I remove that to accommodate Leopard's X. . . but now
when I ssh Tiger to Tiger. . .obviously there is no DISPLAY
being passed. So I guess now I have to manually set DISPLAY
every time I ssh from Tiger to Tiger if I've removed DISPLAY to
accommodate Leopard's new X11?
The best way to handle this is to set DISPLAY if not already set,
in some appropriate shell startup file. The file to use and
syntax depend on which shell you're using; presumably adding an
appropriate `if` statement where you're already handling it in
Tiger will work.
The results:
Tiger: DISPLAY is not set, script sets it
Leopard: launchd set DISPLAY, script leaves it alone
SSH -Y out: ssh sees DISPLAY set at one end, ssh starts X
forwarding and sets DISPLAY at the other end
SSH -Y in: ssh set DISPLAY, script leaves it alone
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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
--
✐Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4037, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development
Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
_______________________________________________
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