This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running ssh from procmail


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 [<address omitted>] 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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]