X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 28 Feb 2008 18:25:33 -0800 From: Gary Johnson To: cygwin AT cygwin DOT com Subject: Re: Initiate a Dial-up Connection from the command line? Message-ID: <20080229022532.GC21188@suncomp1.spk.agilent.com> Mail-Followup-To: cygwin AT cygwin DOT com References: <20080229005713 DOT GB21188 AT suncomp1 DOT spk DOT agilent DOT com> <47C75F0B DOT CFF52970 AT dessent DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47C75F0B.CFF52970@dessent.net> X-Operating-System: SunOS suncomp1 5.8 sparc User-Agent: Mutt/1.5.17 (2007-11-01) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On 2008-02-28, Brian Dessent wrote: > Gary Johnson wrote: > > > I'm running some tests of a radio modem where I need to bring up the > > Windows Connect Dial-up Connection dialog (Start -> Settings [-> > > Control Panel] -> Network Connections -> Dial-up Connection) and > > click the Dial button on a Windows box that's inconvenient to get > > to. It would be much easier if I could ssh to this box (which I > > can) and just execute some command from the Cygwin bash command > > line. Is there some Cygwin utility or other method to do this? > > Have you tried Windows' rasdial command? > . Sweet! I wasn't aware of that command. It took me a while to get it to work because I couldn't find the phone book and didn't know what the available connection names were, if any. (Of course the name is obvious now.) The documentation you pointed me to and my PC's so-called Help and Support Center claim it's in systemroot\System32\Ras, but it's actually in /cygdrive/c/Documents and Settings/All Users/Application Data/Microsoft/Network/Connections/Pbk. Anyway, rasdial "Dial-up Connection" and rasdial "Dial-up Connection" /disconnect do the trick. Thank you very much! Regards, Gary -- 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/