public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* SSH start in .bat ?
@ 2003-01-13 21:46 a12
  2003-01-14  0:23 ` Igor Pechtchanski
  0 siblings, 1 reply; 5+ messages in thread
From: a12 @ 2003-01-13 21:46 UTC (permalink / raw)
  To: cygwin

Hello gurus,

For the time being I start SSH manually:
open DOS window
C:\cygwin\cygwin.bat
ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
<isoft's password>

I have tried to include the ssh command above in cygwin.bat but
obviously bash does not read it.
How do I make bash to read the ssh command in cygwin.bat ?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH start in .bat ?
  2003-01-13 21:46 SSH start in .bat ? a12
@ 2003-01-14  0:23 ` Igor Pechtchanski
  2003-01-14  2:09   ` a12
  0 siblings, 1 reply; 5+ messages in thread
From: Igor Pechtchanski @ 2003-01-14  0:23 UTC (permalink / raw)
  To: a12; +Cc: cygwin

On Mon, 13 Jan 2003, a12 wrote:

> Hello gurus,
>
> For the time being I start SSH manually:
> open DOS window
> C:\cygwin\cygwin.bat
> ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
> <isoft's password>
>
> I have tried to include the ssh command above in cygwin.bat but
> obviously bash does not read it.
> How do I make bash to read the ssh command in cygwin.bat ?

'bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"'
Try "man bash" for details.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH start in .bat ?
  2003-01-14  0:23 ` Igor Pechtchanski
@ 2003-01-14  2:09   ` a12
  2003-01-14  2:16     ` Igor Pechtchanski
  0 siblings, 1 reply; 5+ messages in thread
From: a12 @ 2003-01-14  2:09 UTC (permalink / raw)
  To: cygwin

Igor,

Thank you for your quick reply.

It works perfectly.

Now I would like to incorporate a start of vncviewer.exe after the bash
command into the same .bat file. I have tried:

C:
chdir C:\Program Files\RealVNC
vncviewer.exe
chdir C:\cygwin\bin
bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"

but this start vncviewer, and waits until I enter hostid. bash
is never started.

Any hints here ?

Pardon me if this question does not belong to this mailing
list.


Igor Pechtchanski wrote:

> On Mon, 13 Jan 2003, a12 wrote:
>
> > Hello gurus,
> >
> > For the time being I start SSH manually:
> > open DOS window
> > C:\cygwin\cygwin.bat
> > ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
> > <isoft's password>
> >
> > I have tried to include the ssh command above in cygwin.bat but
> > obviously bash does not read it.
> > How do I make bash to read the ssh command in cygwin.bat ?
>
> 'bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"'
> Try "man bash" for details.
>         Igor
> --
>                                 http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_                pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_            igor@watson.ibm.com
>      |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski
>     '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
>   -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH start in .bat ?
  2003-01-14  2:09   ` a12
@ 2003-01-14  2:16     ` Igor Pechtchanski
  2003-01-14  9:11       ` a12
  0 siblings, 1 reply; 5+ messages in thread
From: Igor Pechtchanski @ 2003-01-14  2:16 UTC (permalink / raw)
  To: a12; +Cc: cygwin

This really isn't a correct mailing list for this question, but, since
it's been asked here before, and will, undoubtedly, be asked here again, I
will pretend it's about "the interaction of windows programs and Cygwin
programs" and answer it:

At a command (DOS) prompt, type "help start".

As an alternative, consider starting windows programs from bash and
backgrounding them (e.g., "vncviewer.exe &").
	Igor

On Mon, 13 Jan 2003, a12 wrote:

> Igor,
> Thank you for your quick reply.
>
> It works perfectly.
>
> Now I would like to incorporate a start of vncviewer.exe after the bash
> command into the same .bat file. I have tried:
>
> C:
> chdir C:\Program Files\RealVNC
> vncviewer.exe
> chdir C:\cygwin\bin
> bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"
>
> but this start vncviewer, and waits until I enter hostid. bash
> is never started.
>
> Any hints here ?
>
> Pardon me if this question does not belong to this mailing
> list.
>
> Igor Pechtchanski wrote:
>
> > On Mon, 13 Jan 2003, a12 wrote:
> >
> > > Hello gurus,
> > >
> > > For the time being I start SSH manually:
> > > open DOS window
> > > C:\cygwin\cygwin.bat
> > > ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
> > > <isoft's password>
> > >
> > > I have tried to include the ssh command above in cygwin.bat but
> > > obviously bash does not read it.
> > > How do I make bash to read the ssh command in cygwin.bat ?
> >
> > 'bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"'
> > Try "man bash" for details.
> >         Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SSH start in .bat ?
  2003-01-14  2:16     ` Igor Pechtchanski
@ 2003-01-14  9:11       ` a12
  0 siblings, 0 replies; 5+ messages in thread
From: a12 @ 2003-01-14  9:11 UTC (permalink / raw)
  To: cygwin

Igor,

Thank you for your invaluable help.


Igor Pechtchanski wrote:

> This really isn't a correct mailing list for this question, but, since
> it's been asked here before, and will, undoubtedly, be asked here again, I
> will pretend it's about "the interaction of windows programs and Cygwin
> programs" and answer it:
>
> At a command (DOS) prompt, type "help start".
>
> As an alternative, consider starting windows programs from bash and
> backgrounding them (e.g., "vncviewer.exe &").
>         Igor
>
> On Mon, 13 Jan 2003, a12 wrote:
>
> > Igor,
> > Thank you for your quick reply.
> >
> > It works perfectly.
> >
> > Now I would like to incorporate a start of vncviewer.exe after the bash
> > command into the same .bat file. I have tried:
> >
> > C:
> > chdir C:\Program Files\RealVNC
> > vncviewer.exe
> > chdir C:\cygwin\bin
> > bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"
> >
> > but this start vncviewer, and waits until I enter hostid. bash
> > is never started.
> >
> > Any hints here ?
> >
> > Pardon me if this question does not belong to this mailing
> > list.
> >
> > Igor Pechtchanski wrote:
> >
> > > On Mon, 13 Jan 2003, a12 wrote:
> > >
> > > > Hello gurus,
> > > >
> > > > For the time being I start SSH manually:
> > > > open DOS window
> > > > C:\cygwin\cygwin.bat
> > > > ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp
> > > > <isoft's password>
> > > >
> > > > I have tried to include the ssh command above in cygwin.bat but
> > > > obviously bash does not read it.
> > > > How do I make bash to read the ssh command in cygwin.bat ?
> > >
> > > 'bash --login -c "ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp"'
> > > Try "man bash" for details.
> > >         Igor
>
> --
>                                 http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_                pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_            igor@watson.ibm.com
>      |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski
>     '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
>   -- /usr/games/fortune
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-14  8:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13 21:46 SSH start in .bat ? a12
2003-01-14  0:23 ` Igor Pechtchanski
2003-01-14  2:09   ` a12
2003-01-14  2:16     ` Igor Pechtchanski
2003-01-14  9:11       ` a12

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).