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: <014d01c30109$221a7ac0$141ea8c0@dm>
From: "Dmitry Melekhov" <dm@belkam.com>
To: "Harald Maier" <maierh@myself.com>
Cc: <cygwin@cygwin.com>
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> <3E96CA54.35118EA3@ieee.org><009201c30048$8cf1ad80$141ea8c0@dm> <3E96E558.9D8E5729@ieee.org><00d501c3004e$ee6a5160$141ea8c0@dm> <uadewvv0g.fsf@myself.com>
Subject: Re: Exim, .forward and DBD::Oracle
Date: Sat, 12 Apr 2003 19:35:22 +0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000


----- Original Message -----
From: <Harald.Maier.BW@t-online.de>
To: "Dmitry Melekhov" <dm@belkam.com>
Cc: <cygwin@cygwin.com>
Sent: Saturday, April 12, 2003 3:02 PM
Subject: Re: Exim, .forward and DBD::Oracle


>
> "Dmitry Melekhov" <dm@belkam.com> writes:
>
> > #!/usr/bin/perl
> > $ENV{ORACLE_HOME}='c:\oracle\ora81';
>
> Setting the ORACLE_HOME variable inside the perl script seems to have
> no effect.
>
> Can you call your script as following:
>
>   $ ORACLE_HOME=c:/oracle/ora81 <this script>
>


Yes! Thank you!

I tried to set this as
  environment="ORACLE_HOME='c:\oracle\ora81'"
environment="ORACLE_HOME='c:\oracle\ora81'"
in pipe configuration in exim.conf, but this doesn't help. Well, situation
becomes differernt, I received  error:
DynaLoader::bootstrap for DBD::Oracle (auto/DBD/Oracle/Oracle.dll)
DBI connect('host=oracle.belkam.com;sid=TABEL','tabel',...) failed: Error
while trying to retrieve text for error ORA-12538 (DBD ERROR:
OCIServerAttach) at /home/tabel/test.pl line 11
Died at /home/tabel/test.pl line 11.

So I wrote shell script

#!/bin/sh
/bin/cat|ORACLE_HOME='c:\oracle\ora81' /home/tabel/test.pl

and call it from .forward. Hope that this (cat| .. ) will work.

And, I also added   pipe_as_creator=true
in exim.conf.
I don't know  why I need this ;-) but without this line nothing works too.
Currently I have no ability to find more- I worked from home today,
on 21600 (I hate russian phone companies, especially VolgaTelecom ;-) ).

Thank you!







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

