Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 15 Jun 2004 10:34:01 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Running ssh from procmail Message-ID: <20040615083401.GD15387@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <004b01c44fe3$68ff0350$ac050b0a AT PWISNOVSKY> <007601c4526b$02aff200$ac050b0a AT PWISNOVSKY> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007601c4526b$02aff200$ac050b0a@PWISNOVSKY> User-Agent: Mutt/1.4.2i On Jun 14 16:55, Peter Wisnovsky wrote: > More information on this problem with ssh hostname resolution failing. > > If my fetchmailrc has > > poll ... mda "/usr/bin/procmail -d %T" > > hostname resolution in the nested script fails with > + /usr/bin/ssh -g -n -e none -v -R p1:localhost:p1-l me verklempt 'sleep > 180' > OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 > debug1: Reading configuration data /etc/ssh_config > ssh: verklempt: no address associated with name > > If I do > > poll ... mda "/usr/bin/procmail -p /home/me/.procmailrc" > > (e.g. preserve environment) I get > > + /usr/bin/ssh -g -n -e none -v -R p1:localhost:p1-l me verklempt 'sleep > 180' > OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 > debug1: Reading configuration data /etc/ssh_config > debug1: Connecting to verklempt [
] port 22. > > Hurray! But I'm confused as to why. I'm under the impression it's a path problem. > [...] > > Procmailrc is > > > > SHELL=/bin/sh > > PATH=/bin:/usr/bin:/pkg/mail/bin Add the usual Windows paths to $PATH, e.g. on my system that would be PATH=/bin:/usr/bin:/pkg/mail/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem Then try your original solution again. I have this feeling it will help. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/