Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id AF6C62E2EF9 for ; Thu, 6 Dec 2007 13:07:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 60200-07 for ; Thu, 6 Dec 2007 13:06:54 -0400 (AST) Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by postgresql.org (Postfix) with ESMTP id 1A27E2E0267 for ; Thu, 6 Dec 2007 13:06:53 -0400 (AST) Received: from a-kretschmer.de (p54B389F2.dip0.t-ipconnect.de [84.179.137.242]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id lB6H6o0o019618 for ; Thu, 6 Dec 2007 18:06:51 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.61) (envelope-from ) id 1J0KCa-0004QP-2A for pgsql-sql@postgresql.org; Thu, 06 Dec 2007 18:07:56 +0100 Date: Thu, 6 Dec 2007 18:07:56 +0100 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: execute system command from storage procedure Message-ID: <20071206170755.GA16649@KanotixBox> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: mutt-ng 1.5.9i (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/19 X-Sequence-Number: 29711 Sabin Coanda schrieb: > Hi there, > > Is it possible to execute a system command from a function ? (e.g. bash ) Yes, of course, but you need an untrusted language like pl/perlU oder plsh. http://plsh.projects.postgresql.org/ Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknow) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°