Re: Autostart with SSH

"Niraj Tolia" <[email protected]>
Newsgroups gmane.comp.graphics.chromium.user
Message-ID <[email protected]>
My bad. I copy pasted the wrong piece of code. For you,


  servernode.AutoStart( ["/usr/local/bin/ssh2", host,
                                "/bin/sh -c '" + env + " " + prog + "'"] )

where env contains 'DISPLAY = :0.0' would probably work. Again, this is just
a guess but I hope it helps

Niraj


On 5/2/06, Samuel Winchenbach <[email protected]> wrote:
>
> I think I am missing something...  I want to run crserver on each node.
> Wouldn't "/bin/sh -c 'DISPLAY=: 0.0  CRMOTHERSHIP=%s crappfaker'" run
> crappfaker?  And what does CRMOTHERSHIP=%s ?
>
> Thanks!
>
>
> Niraj Tolia wrote:
> >
> >
> > On 5/2/06, *Samuel Winchenbach* <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hello,
> >
> >     I was wondering if it is possible to autostart crserver using
> SSH?  I
> >     currently have SSH setup with public/private key pairs so that no
> >     password is needed.  Below shows that SSH is working correctly, it
> >     shows
> >     the config file I am trying to run, and it shows the output errors.
> >     Thanks!  Sam.
> >
> >
> > [snip]
> >
> >         servernode.AutoStart( ["/usr/local/bin/ssh2", host,
> >                                "/bin/sh -c '" + env + " " + prog + "'"]
> )
> >
> >
> > Samuel,
> >
> > Would this not start the crserver on your local display?  You probably
> > want a command line that specifies the DISPLAY. Something like
> > "/bin/sh -c 'DISPLAY=: 0.0  CRMOTHERSHIP=%s crappfaker'" might help.
> >
> > Niraj
> >
> > --
> > http://www.cs.cmu.edu/~ntolia <http://www.cs.cmu.edu/%7Entolia>
>
>


--
http://www.cs.cmu.edu/~ntolia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.