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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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