X-Recipient: archive-cygwin@delorie.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 <cyrille.lefevre-lists@laposte.net>
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@cygwin.com
Subject: Re: How can autossh start remote connection, if computer is off?
References: <AANLkTikLhnGkesbDcNsJmdXAeC7rAq_+D4TgWFd7fEGr@mail.gmail.com> <AANLkTim5veZbCw+iQRZHsxC7xWmHv_ij4NxfO_oKTMCp@mail.gmail.com> <4CD9F784.30000@acm.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Le 10/11/2010 02:38, David Rothenberger a =E9crit :
>=20
> On 11/9/2010 5:26 PM, cygwin.20.gyurman@spamgourmet.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@192.168.1.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.Lefevre-lists@laposte.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

