delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/28/21:26:12

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 <garyjohn AT spk DOT agilent DOT com>
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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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? 
> <http://technet.microsoft.com/en-us/library/bb490979.aspx>.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019