Re: [fpc-pascal] how to catch fpopen() output

2008-07-23 Thread Anthony Henry
Could also use popen. Sent from my iPhone On Jul 23, 2008, at 11:11, Marc Santhoff <[EMAIL PROTECTED]> wrote: Am Mittwoch, den 23.07.2008, 14:40 +0200 schrieb Graeme Geldenhuys: Hi, I have a function called fpgOpenURL(...) which contains the following if fpsystem('which xdg-open

Re: [fpc-pascal] how to catch fpopen() output

2008-07-23 Thread Marc Santhoff
Am Mittwoch, den 23.07.2008, 14:40 +0200 schrieb Graeme Geldenhuys: > Hi, > > I have a function called fpgOpenURL(...) which contains the following > > if fpsystem('which xdg-open') = 0 then > Helper := 'xdg-open' > else if fpsystem('which firefox') = 0 then > Helper := '

[fpc-pascal] how to catch fpopen() output

2008-07-23 Thread Graeme Geldenhuys
Hi, I have a function called fpgOpenURL(...) which contains the following if fpsystem('which xdg-open') = 0 then Helper := 'xdg-open' else if fpsystem('which firefox') = 0 then Helper := 'firefox'; else if fpsystem('which konqueror') = 0 then Helper := 'konquero