Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 93EE7633F9F for ; Sat, 5 Sep 2009 02:18:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 28546-01 for ; Sat, 5 Sep 2009 05:18:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mail.postgresql.org (Postfix) with ESMTP id 70D94633099 for ; Sat, 5 Sep 2009 02:18:29 -0300 (ADT) Received: by fg-out-1718.google.com with SMTP id 22so306974fge.1 for ; Fri, 04 Sep 2009 22:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=dPTVUekLxTQrEVHUy3kPOmpNIrkvTGgBz//FMtxSrD4=; b=LmUPYySSjBj2Bl7qfBG4hC4asERRxc+rs43FuytPWsyO1YCyfKKKNDw8hhiWC3gWZs dUwj3nG72y+YKTrciT8zEJQCVZA+5YVnvtt0S8j4zqayEaazmSVJDUxgZYiDWPqP9slQ ZsS1My8/t6eSWKOW3HRsLxnxqO68HOvtE0fog= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=w1D4oqb+x966Wz5DYJFZHbu1smTzffo/h7G103VL743aJPpjdcw1PWkvU25jeWILf2 UWxV1FuelpGOVcz/WR8coOj8qbQIBz8kzPemFr8ZDHBDvytANi2WdCCS1/mEN7wYg40H WvkkLwmPxWmfrHDHGrcDlnwh+SK4O7QP20HVg= Received: by 10.86.231.13 with SMTP id d13mr5771855fgh.41.1252127907280; Fri, 04 Sep 2009 22:18:27 -0700 (PDT) Received: from ?192.168.0.4? (ALyon-158-1-4-141.w90-27.abo.wanadoo.fr [90.27.91.141]) by mx.google.com with ESMTPS id 3sm3247927fge.17.2009.09.04.22.18.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Sep 2009 22:18:27 -0700 (PDT) Message-ID: <4AA1F495.2050602@gmail.com> Date: Sat, 05 Sep 2009 07:18:13 +0200 From: Piaff33z User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: problem on test perlu trigger function. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200909/1 X-Sequence-Number: 6880 Hello, I have a problem on a test directory on my trigger function. For information, i use a 8.0.21 version of perl. To make things simple, i make a perlu function trigger on when i modify a row, i try to test the existence of a directory. I have the impression that this test does not work :-( my function... .. if (! -d "$PATHBASE/$_TD->{new}{categorie}") { `sudo -u http mkdir "$PATHBASE/$_TD->{new}{categorie}"`; } ... Sudo function is performed in spite of the presence of directory ! It as if "-d" serve has nothing... Anybody knows why? Vic