Passing (lot's of) data to a process...

thierry Douez t.douez at wanadoo.fr
Thu Jun 12 04:12:01 EDT 2003


  | [mailto:metacard-admin at lists.runrev.com]De la part de David Bovill
  | Envoyé : Sunday, June 08, 2003 2:14 PM
  | À : metacard lists.runrev.com
  | Objet : Passing (lot's of) data to a process...
  |
  |
  | Trying to avoid writing a file then reading it in. The data I
  | have is in a variable - and may contain quotes.
  |
  | Best way? Thinking that I should open the process and write the
  | variable to
  | the opened process as "shell" syntax may not work so well?
  |
  | Any help?
  |

Hi david,

I did play with this problem quite a while ago...

the main idea ( for me ) was to build a GUI on top of
a Perl program.
As usual, i did a lot of tries before deciding wich way to go.

So, first i had a perl program in a metacard property ( PerlProperty)
Then, via the shell(), start perl with the standart input being fed
by my PerlProperty. What i discover was that this solution was not reliable,
i could execute a full Perl program ( let say around 2 pages ) like that,
but then, another Perl program with few lines blocked everything.
At this time, i did ask for help on this list, but it seems very few play
with this. I remember someone saying that the "command.com" command ( used
by
the shell() command ) was not so reliable.
So, i gave up with this solution. BTW, i was on WIN 98 box.

Then, instead of passing from metacard to Perl a full program, i
transformed a set of properties to a perl understandable data format,
and again, with the shell, start a perl program which, this time could
accept
some Data input with a simple mechanism of Handshaking... I could pass
a large amount of numeric and text information, and then without any
problem.
So  i keep this solution and I am happy with this. ( at the moment :) )

HTH,
regards, thierry




More information about the metacard mailing list