delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/09/20:38:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <4CD9F784.30000@acm.org>
Date: Tue, 09 Nov 2010 17:38:12 -0800
From: David Rothenberger <daveroth AT acm DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
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>
In-Reply-To: <AANLkTim5veZbCw+iQRZHsxC7xWmHv_ij4NxfO_oKTMCp@mail.gmail.com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

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=yes AUTOSSH_GATETIME=0"
> But not working. How can I do?

I don't know if this will solve your problem, but you can only specify
one "VAR=VALUE" string with the -e switch. You have to repeat the -e
switch to define multiple environment variables.

  ... -e 'AUTOSSH_NTSERVICE=yes' -e 'AUTOSSH_GATETIME=0'


-- 
David Rothenberger  ----  daveroth AT acm DOT org

Experience, n.:
        Something you don't get until just after you need it.
                -- Olivier

--
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