in reply to Re: Use text string as stdin for system process
in thread Use text string as stdin for system process

Yeah, that's pretty much what I wanted to do. But for some stupid reason, that's no-one can clearly explain to me, I'm being told I can't access their database except through the command-line tool. Don't ask - I've already given up asking :)

Open2 and Open3 appear to be coming up as good possibilities. I'll have to go and have a look. Thanks!
  • Comment on Re^2: Use text string as stdin for system process

Replies are listed 'Best First'.
Re^3: Use text string as stdin for system process
by derby (Abbot) on Jan 05, 2007 at 16:18 UTC

    Uhhh ... how are they going to know?

    -derby
      The b***ards are going to check the source.
        Actually, you can do exactly the same thing in Perl, although it's considered stylistically sucky and is a hazard to security if there are variables that mischievous users can set to evil values.
        $x=`cat <<endl | grep whatever yadda yadda whatever yadda yadda endl`; chomp $x; print qq{\$x="$x"\n};
        prints
        $x="whatever"