X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4CDC80EE.9080305@laposte.net> Date: Fri, 12 Nov 2010 00:49:02 +0100 From: Cyrille Lefevre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How can autossh start remote connection, if computer is off? References: <4CD9F784 DOT 30000 AT acm DOT org> In-Reply-To: <4CD9F784.30000@acm.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-me-spamlevel: not-spam X-me-spamrating: 36.000000 X-me-spamcause: OK, (-100)(0000)gggruggvucftvghtrhhoucdtuddrfedtjedrtddvucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecuucdlqddutddtmd X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Le 10/11/2010 02:38, David Rothenberger a =E9crit : >=20 > On 11/9/2010 5:26 PM, cygwin DOT 20 DOT gyurman AT spamgourmet DOT com wrote: >> How Can I do autossh connection with any computer which is off, but >> sometime coming to power on? >> I used this: >> cygrunsrv -I AutoSSH -n -O -u name -w pass -p /usr/bin/autossh -a "-M >> $port -R 5903:localhost:22 name AT 192 DOT 168 DOT 1 DOT 102" -e >> "AUTOSSH_NTSERVICE=3Dyes AUTOSSH_GATETIME=3D0" >> But not working. How can I do? >=20 > I don't know if this will solve your problem, but you can only specify > one "VAR=3DVALUE" string with the -e switch. You have to repeat the -e > switch to define multiple environment variables. >=20 > ... -e 'AUTOSSH_NTSERVICE=3Dyes' -e 'AUTOSSH_GATETIME=3D0' you may also specify -y tcpip to wait for the network is up. PS : what is $port ? have you $port defined in your windows environment ? I use -M 0. Regards, Cyrille Lefevre --=20 mailto:Cyrille DOT Lefevre-lists AT laposte DOT net -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple