RE: feeding standard input calling an external program

2004-09-07 Thread Chris Devers
On Tue, 7 Sep 2004, West, William M wrote: There's all kinds of edge cases that would have to be dealt with here. I really think that putting the XML directly into a command line is doomed to failure; putting it in a temp file should be much more robust. i agree.. but the above might work for this

RE: feeding standard input calling an external program

2004-09-07 Thread West, William M
willy http://www.hackswell.com/corenth > >> #try this: system("echo \'$xml\' | myprogamname") >> >> \ i haven't tried it, but it >> should keep the shell from interpolating the xml data > >But what happens if the XML has a

Re: feeding standard input calling an external program

2004-09-07 Thread Wiggins d Anconia
> On Tue, 7 Sep 2004, Francesco del Vecchio wrote: > > > I've got a weird problem using an external program that get the input > > from "stardard input" > > > > I've got to call it (and easily do this with "system('myprogramname')" > > but I've to feed this program with an XML file that generall

RE: feeding standard input calling an external program

2004-09-07 Thread Chris Devers
On Tue, 7 Sep 2004, West, William M wrote: One way to do this -- probably not a good one -- might be system("echo $xml | myprogamname") but if there's anything in the XML that the shell finds interesting, this could fail in all kinds of spectacular ways. #try this: system("echo \'$xml\' | mypro

RE: feeding standard input calling an external program

2004-09-07 Thread West, William M
> > >One way to do this -- probably not a good one -- might be > > system("echo $xml | myprogamname") > >but if there's anything in the XML that the shell finds interesting, >this could fail in all kinds of spectacular ways. #try this: system("echo \'$xml\' | myprogamname")

Re: feeding standard input calling an external program

2004-09-07 Thread Chris Devers
On Tue, 7 Sep 2004, Francesco del Vecchio wrote: I've got a weird problem using an external program that get the input from "stardard input" I've got to call it (and easily do this with "system('myprogramname')" but I've to feed this program with an XML file that generally is passed via standar

Re: feeding standard input calling an external program

2004-09-07 Thread Jenda Krynicky
From: Francesco del Vecchio <[EMAIL PROTECTED]> > I've got a weird problem using an external program that get the input > from "stardard input" > > I've got to call it (and easily do this with "system('myprogramname')" > but I've to feed this program with an XML file that generally is > passed via

feeding standard input calling an external program

2004-09-07 Thread Francesco del Vecchio
hi to all, I've got a weird problem using an external program that get the input from "stardard input" I've got to call it (and easily do this with "system('myprogramname')" but I've to feed this program with an XML file that generally is passed via standard input with a "filename | myprogramna