delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/13/12:29:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <00f601c301e2$a104f840$141ea8c0@dm>
From: "Dmitry Melekhov" <dm AT belkam DOT com>
To: "Martin Gainty" <mgainty AT hotmail DOT com>, "Harald Maier" <maierh AT myself DOT com>
Cc: <cygwin AT cygwin DOT com>
References: <321323244855 DOT 20030410222844 AT familiehaase DOT de><3E9538B8 DOT 5010107 AT belkam DOT com><321323244855 DOT 20030410222844 AT familiehaase DOT de><3 DOT 0 DOT 5 DOT 32 DOT 20030410233114 DOT 007fcc30 AT incoming DOT verizon DOT net><3E963AF7 DOT 6060101 AT belkam DOT com> <3E96CA54 DOT 35118EA3 AT ieee DOT org><009201c30048$8cf1ad80$141ea8c0 AT dm> <3E96E558 DOT 9D8E5729 AT ieee DOT org><00d501c3004e$ee6a5160$141ea8c0 AT dm> <uadewvv0g DOT fsf AT myself DOT com><014d01c30109$221a7ac0$141ea8c0 AT dm> <un0ivvbaf DOT fsf AT myself DOT com> <007601c301c3$053adca0$141ea8c0 AT dm> <Law10-OE17W2hSsKAfH000015c6 AT hotmail DOT com>
Subject: Re: Exim, .forward and DBD::Oracle
Date: Sun, 13 Apr 2003 21:32:15 +0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

----- Original Message -----
From: "Martin Gainty" <mgainty AT hotmail DOT com>
To: "Dmitry Melekhov" <dm AT belkam DOT com>; "Harald Maier" <maierh AT myself DOT com>
Cc: <cygwin AT cygwin DOT com>
Sent: Sunday, April 13, 2003 8:35 PM
Subject: Re: Exim, .forward and DBD::Oracle


> > Thank you!!!
> >
> Please display the solution.

Hmm. Now I have better solution.
Many thanks to Pierre A. Humblet!

User, which received e-mail and which has script in .forward
had gid 513 in /etc/passwd. After changing it to 545 (Users)
script works. Otherwise perl never ends - looks like security doesn't
allowed something to DBD::Oracle.
Certanly, this script worked from console, because id on console is
$ id
uid=1019(tabel) gid=513(Отсутствует)
groups=513(Отсутствует),545(Пользователи)

But when exim calls script id is:
uid=1019(tabel) gid=513(Отсутствует) groups=513(Отсутствует)

Unfortunately, initgroups doesn't help :-(
So, only solution is to set group to 545.


Another problem is with perl in cygwin.
On Linux I can set
$ENV{PATH} and $ENV{ORACLE_HOME} inside
perl script, but in cygwin I had to write shell script to call perl script:

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

or I received following error:

install_driver(Oracle) failed: Can't load
'/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBD/Oracle/Oracle.dl
l' for module DBD::Oracle: dlopen: Win32 error 126 at
/usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 232

if I try to call perl script from .forward.

This is thing I still don't understand. :-(










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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019