pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedFrom: Piaff33z <piaff33z@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: problem on test perlu trigger function.
Date: Sat, 05 Sep 2009 07:18:13 +0200
Message-ID: <4AA1F495.2050602@gmail.com> (raw)
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
view thread (3+ messages) latest in thread
Message-ID: <4AA1F495.2050602@gmail.com>
Permalink: ../4AA1F495.2050602@gmail.com/
Also on: postgresql.org/message-id/4AA1F495.2050602@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: piaff33z@gmail.com
Subject: Re: problem on test perlu trigger function.
In-Reply-To: <4AA1F495.2050602@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox