* launching a windows program remotely using ssh
@ 2003-10-27 21:39 Rob S.i.k.l.o.s.
2003-10-28 2:09 ` Larry Hall
0 siblings, 1 reply; 4+ messages in thread
From: Rob S.i.k.l.o.s. @ 2003-10-27 21:39 UTC (permalink / raw)
To: cygwin
Hello,
I have an ssh (cygwin) server running on a windows 2000 machine, and I want
to start a windows program on this machine using a remote command.
My problem is that I can't get the window of the program to display
anywhere.
For example:
I run something like "ssh user@computer /c/winnt/system32/notepad.exe"
When I ran this command, I was expecting to see a notepad window open on
"computer", but none appeared. Is there any way to accomplish this?
The process *did* start, because it was listed in the task manager.
Thanks a lot,
Rob.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: launching a windows program remotely using ssh
2003-10-27 21:39 launching a windows program remotely using ssh Rob S.i.k.l.o.s.
@ 2003-10-28 2:09 ` Larry Hall
2003-10-28 2:13 ` Rob S.i.k.l.o.s.
0 siblings, 1 reply; 4+ messages in thread
From: Larry Hall @ 2003-10-28 2:09 UTC (permalink / raw)
To: Rob S.i.k.l.o.s., cygwin
At 02:33 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote:
>Hello,
>
>I have an ssh (cygwin) server running on a windows 2000 machine, and I want
>to start a windows program on this machine using a remote command.
>
>My problem is that I can't get the window of the program to display
>anywhere.
>
>For example:
>I run something like "ssh user@computer /c/winnt/system32/notepad.exe"
>
>When I ran this command, I was expecting to see a notepad window open on
>"computer", but none appeared. Is there any way to accomplish this?
>The process *did* start, because it was listed in the task manager.
See the "--interactive" flag of cygrunsrv. You need to install ssh (or
any service) with this if you want the service to interact with the
"desktop"
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: launching a windows program remotely using ssh
2003-10-28 2:09 ` Larry Hall
@ 2003-10-28 2:13 ` Rob S.i.k.l.o.s.
2003-10-30 8:11 ` Larry Hall
0 siblings, 1 reply; 4+ messages in thread
From: Rob S.i.k.l.o.s. @ 2003-10-28 2:13 UTC (permalink / raw)
To: cygwin
From: "Larry Hall" <cygwin-lh@cygwin.com>
> At 02:33 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote:
> >Hello,
> >
> >I have an ssh (cygwin) server running on a windows 2000 machine, and I
want
> >to start a windows program on this machine using a remote command.
> >
> >My problem is that I can't get the window of the program to display
> >anywhere.
> >
> >For example:
> >I run something like "ssh user@computer /c/winnt/system32/notepad.exe"
> >
> >When I ran this command, I was expecting to see a notepad window open on
> >"computer", but none appeared. Is there any way to accomplish this?
> >The process *did* start, because it was listed in the task manager.
>
> See the "--interactive" flag of cygrunsrv. You need to install ssh (or
> any service) with this if you want the service to interact with the
> "desktop"
right - that totally works. Thanks a lot.
Now, is there any way of having sshd run being able to interact with the
desktop, but without having an empty console window hanging around?
I guess that was probably the point of not allowing sshd to interact with
the desktop in the first place, huh?
Rob.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: launching a windows program remotely using ssh
2003-10-28 2:13 ` Rob S.i.k.l.o.s.
@ 2003-10-30 8:11 ` Larry Hall
0 siblings, 0 replies; 4+ messages in thread
From: Larry Hall @ 2003-10-30 8:11 UTC (permalink / raw)
To: Rob S.i.k.l.o.s., cygwin
At 04:39 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote:
>From: "Larry Hall" <cygwin-lh@cygwin.com>
>
>> At 02:33 PM 10/27/2003, Rob S.i.k.l.o.s. you wrote:
>> >Hello,
>> >
>> >I have an ssh (cygwin) server running on a windows 2000 machine, and I
>want
>> >to start a windows program on this machine using a remote command.
>> >
>> >My problem is that I can't get the window of the program to display
>> >anywhere.
>> >
>> >For example:
>> >I run something like "ssh user@computer /c/winnt/system32/notepad.exe"
>> >
>> >When I ran this command, I was expecting to see a notepad window open on
>> >"computer", but none appeared. Is there any way to accomplish this?
>> >The process *did* start, because it was listed in the task manager.
>>
>> See the "--interactive" flag of cygrunsrv. You need to install ssh (or
>> any service) with this if you want the service to interact with the
>> "desktop"
>
>right - that totally works. Thanks a lot.
>
>Now, is there any way of having sshd run being able to interact with the
>desktop, but without having an empty console window hanging around?
>
>I guess that was probably the point of not allowing sshd to interact with
>the desktop in the first place, huh?
Right. ;-)
Since it's a console program, if you allow it to interact with the
desktop, it's going to create a console for itself. I suppose you
could fiddle with running 'cygstart' or 'run' to try to get it to hide
the console. That's without fiddling with sshd code that is. I haven't
really investigated any of these options but it's just my way of saying
that it is quite possible to get a console program to hide the console
window. See CreateProcess()/STARTUPINFO documentation for the details on
the internals.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-10-30 4:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-27 21:39 launching a windows program remotely using ssh Rob S.i.k.l.o.s.
2003-10-28 2:09 ` Larry Hall
2003-10-28 2:13 ` Rob S.i.k.l.o.s.
2003-10-30 8:11 ` Larry Hall
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).