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

How to retrieve the output of an external program?

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: How to retrieve the output of an external program?
Date: 2012-01-08 17:29:24
Message-ID: 20120108182924.2d9131fb@anubis.defcon1 (view raw or flat)
Thread:
Lists: pgsql-novice
Hi list & happy easter,

What I'd like to be able to do is:
* Run a function that sends parms to an external pgm [no PB],
* Capture the external pgm output that normally goes to stdout.

Is it possible directly or am I obliged to use a temporary file
and retrieve it from my function?

JY
-- 
                printk("ufs_read_super: fucking Sun blows me\n");
		-- /usr/src/linux/fs/ufs/ufs_super.c

Responses

pgsql-novice by date

Next:From: Michael WoodDate: 2012-01-08 20:40:04
Subject: Re: How to retrieve the output of an external program?
Previous:From: Birchall, AustenDate: 2012-01-06 09:53:23
Subject: Re: Removal of WAL logs

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