This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: sshd and launching e.g. word.exe - no GUI screen shows up


Peter,

For a non-visual basic solution take a look at the 'run' program at
http://www.neuro.gatech.edu/users/cwilson/cygutils/run/
Incidentally, a similar program also comes with an XFree86 distribution.
	Igor

On Mon, 23 Dec 2002, [iso-8859-1] Peter Valdemar Mørch wrote:

> Thanks a million for your reply to my post.
>
> I tried what you suggested, and sure enough, it allows me to do exactly as I
> want. However, when use these settings and the service is started, a
> terminal (or "dos box") appears with absolutely nothing in it. ps -ef shows
> that sshd is running. If I close the dos box, ps shows that sshd
> disappeared, and surely enough I cannot log into the box.
>
> It did however give me the starting point to find a solution that works for
> me: I start sshd myself in a windows Start/Programs/Startup/ shortcut, and
> then disable the service . I am the only one logged in to this machine, and
> I'm always logged in, so that works fine for me. The command for the
> shortcut is:
>
> %windir%\system32\wscript.exe c:\data\scr\quiet.vbs
> c:\cygwin\bin\bash --login -c "export CYGWIN='binmode ntsec tty';
> /usr/sbin/sshd -D"
>
> and quiet.vbs is a little Visual Basic magic to start Cygwin stuff and
> avoiding the terminal. VERY cool and useful whenever you want to run a bash
> script but don't want the terminal that goes along with it. See below.
>
> Of course the ideal general purpose solution is to get it to work as a
> service, that allows interaction with the desktop, but doesn't create a
> terminal. I'm pretty sure the solution is in the registry somewhere, but I
> couldn't quite figure out the logic in the registry settings. The
> "ImagePath" is C:\cygwin\bin\cygrunsrv.exe, the Parameters\AppArgs is "-D",
> and Parameters\AppPath is "/usr/sbin/sshd"... The only way I could get it to
> work by hand was with cygrunsrv -S sshd, but then the window always seemed
> to appear. Anyway...
>
> Thanks again, Larry,
>
> Sincerely
>
> Peter Valdemar Mørch
> [snip quiet.vbs]

-- 
				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/


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