Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: Darren Dunham Message-Id: <200304261844.LAA10611@redwood.taos.com> Subject: Re: How to run SSHD automatically when not on NT/2K? To: cygwin AT cygwin DOT com Date: Sat, 26 Apr 2003 11:44:26 -0700 (PDT) In-Reply-To: from "Cant" at Apr 26, 2003 07:13:15 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > > good news... i had to use this once to start up kde under x11 so here is > what you put in the batch file > > @echo off > > D: > chdir D:\cant\cygwin\bin > > bash --login -i -c "sshd" > > this is what i have but then i dont use it now that i use cygrunsrv on my xp > machine [; hope this helps... [; Sweet. I used that for some testing. The -i doesn't seem to be necessary (as one might expect), but the --login is. Also, sshd isn't in the default startup path, so this is what I finally got working for me.. @echo off C: chdir C:\cygwin\bin bash --login -c "/usr/sbin/sshd" Now to pop that in the startup folder, and I'm all set. Thanks for the help. -- Darren Dunham ddunham AT taos DOT com Unix System Administrator Taos - The SysAdmin Company Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. > -- 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/