[NTLUG:Discuss] expect

Terry trryhend at gmail.com
Tue Mar 8 16:44:59 CST 2005


On Tue, 08 Mar 2005 16:03:57 -0600, Stuart Johnston <saj at thecommune.net> wrote:
> Terry wrote:
> >
> > First, I tried to write a script and failed (the first couple of times
> > anyway), and so, (being the determined individual I am), I gave up.
> > Simple task it seemed - secure shell to another computer, switch to
> > different user, run a GUI application
> 
> Unless I am missing something here, you should just be able to do
> something like:
> 
> ssh -X user at computer kaddressbook
> 

Sorry, maybe we're _both_ msissing something here, but that doesn't
seem to work either.

What does work, is:
ssh -l [usrename] [ipaddress-or-hostname]
password: [enter-password-here]
kaddressbook


> Although, I suppose that you are using expect to remember your password.

Yes, the script is entering my password for me.  


>   The alternative would be to use ssh keys (see earlier thread).
> 
> -Stuart
> 

Ok, I'll look into that.    Thanks.




More information about the Discuss mailing list