delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/11/18:49:22

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 <cyrille DOT lefevre-lists AT laposte DOT 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 AT cygwin DOT com
Subject: Re: How can autossh start remote connection, if computer is off?
References: <AANLkTikLhnGkesbDcNsJmdXAeC7rAq_+D4TgWFd7fEGr AT mail DOT gmail DOT com> <AANLkTim5veZbCw+iQRZHsxC7xWmHv_ij4NxfO_oKTMCp AT mail DOT gmail DOT com> <4CD9F784 DOT 30000 AT acm DOT org>
In-Reply-To: <4CD9F784.30000@acm.org>
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: <cygwin.cygwin.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

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

- Raw text -


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