Skip site navigation (1) Skip section navigation (2)

problem on test perlu trigger function.

From: Piaff33z <piaff33z(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: problem on test perlu trigger function.
Date: 2009-09-05 05:18:13
Message-ID: 4AA1F495.2050602@gmail.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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


Responses

pgsql-interfaces by date

Next:From: Greg Sabino MullaneDate: 2009-09-05 11:30:27
Subject: Re: problem on test perlu trigger function.
Previous:From: Greg Sabino MullaneDate: 2009-07-28 17:06:49
Subject: Re: SERIOUS BUG IN DBD::Pg 2.14.0 for bigint types

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group