This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issues with Launching remote X apps


On Thu, 14 Aug 2003, Armbrust, Daniel C. wrote:

> I'm trying to setup my startxwin.bat script in such a way that it logs
> in to a remote linux machine, and starts kde, with one click.
>
> I'm there, except for the launching of kde part.
>
> Here are (what I think are) the important commands from the script:
>
> start XWin -screen 0 1280 960 -clipboard
> run xsetroot -solid aquamarine4
> run /usr/X11R6/bin/xHost.exe +
> run xterm -geometry 80x24+0+0 -sb -leftbar -e ssh -f mir01startkde
>
> But for some reason, when it executes 'startkde' it seems to do so
> without having loaded my environment variables, etc first.  I get lots
> of errors, and it dies.
>
> If I make the last line in the .bat file this instead:
> run xterm -geometry 80x24+0+0 -sb -leftbar -e ssh mir01
>
> The ssh connection works correctly, and then if I type in 'startkde'
> everything runs great.
>
> What am I doing wrong with the ssh command?
>
> Thanks,
> Dan

Dan,

ssh has two modes of operation: a remote shell, and a remote login.  When
you supply a script to execute, it acts as a remote shell.  When you don't
(i.e., your second case), it acts as a remote login, executing all
login/rc scripts.  Apparently, you need to execute your login/rc scripts
to set up the environment to run kde.  If your login shell is bash, try
forcing a login by running

run xterm -geometry 80x24+0+0 -sb -leftbar -e ssh -f mir01 /bin/bash --login -c startkde

(I'm assuming the lack of space in the above command is a typo).  If your
login shell is something else, you'll need to find out which flag to pass
to it to force a login shell (for tcsh it's '-l' IIRC).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]