Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3E96CA54.35118EA3@ieee.org>
Date: Fri, 11 Apr 2003 09:59:48 -0400
From: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Dmitry Melekhov <dm@belkam.com>
CC: cygwin@cygwin.com
Subject: Re: Exim, .forward and DBD::Oracle
References: <321323244855.20030410222844@familiehaase.de> <3E9538B8.5010107@belkam.com> <321323244855.20030410222844@familiehaase.de> <3.0.5.32.20030410233114.007fcc30@incoming.verizon.net> <3E963AF7.6060101@belkam.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello Dmitry,

Dmitry Melekhov wrote:
> >
> >
> > Is Exim's PATH correct?  Can you print it from the script?
> 
> Shure. It is only /usr/bin.
> But I set my own enviroment with
> $ENV{PATH}=...
> with PATH /cygdrive/c/oracle/ora81/bin included.
> 
> Do I need to set enviroment for exim?

The way it works is that exim running as SYSTEM setuid 
to "tabel" and forks a delivery process. 
The PATH in the delivery process is /usr/bin,
see "path" in sections 28.3 and 28.4 of the exim user
guide http://www.exim.org/exim-html-4.10/doc/html/spec.html

Where do you set  $ENV{PATH}=...
Is it in the script?    
  (by the way, I don't know perl)

Try to print debug information 
 (e.g. commands "mount", "id", "env") from inside the script
  after you have set the PATH and other stuff.
Can you execute other simple commands from inside the script?
 
> > When does exim call this during mail processing?
> 
> Hmm.
> Exim calls this script because there is following
> string in .forward for user:
> |/home/tabel/test.pl
> 
> > Is it from a .forward file (guess from the Subject: line)
> 
> Yes.
> And it runs from user tabel, not from SYSTEM (exim runs from SYSTEM),
> as I see in task manager.
> 
> > Is there an error message in the exim log?
> Yes.
> 
> 2003-04-11 08:18:09 HD5T67-0002I4-N0 ** |"/home/tabel/test.pl"
> <tabel@center.bel
> kam.com> R=userforward T=address_pipe: Child process of address_pipe
> transport r
> eturned 255 (could mean shell command ended by signal 127 (NULL)) from
> command:
> /home/tabel/test.pl

Pierre

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

