how can i automate this?

Discussion in 'Perl' started by Someone, Aug 20, 2003.

  1. Someone

    Someone Guest

    there's a korn shell script that i would like to wrap a perl script
    around to automate it, as a task i need to do always chooses the same
    options from this script (it's menu driven). can i somehow redirect
    my perl scripts stdout to print to this scripts stdin? does that make
    sense? thanks.

    sean rowe
     
    Someone, Aug 20, 2003
    #1
    1. Advertising

  2. Someone wrote:
    > there's a korn shell script that i would like to wrap a perl script
    > around to automate it, as a task i need to do always chooses the same
    > options from this script (it's menu driven). can i somehow redirect
    > my perl scripts stdout to print to this scripts stdin? does that make
    > sense? thanks.


    Please see "perldoc -f open" and the there check out the "|--" mode.
    However, you may be better of using the Expect module.

    jue
     
    Jürgen Exner, Aug 21, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tester in ruby
    Replies:
    1
    Views:
    246
    Dave Burt
    Oct 14, 2005
  2. Chris Finch

    what can you automate with Ruby?

    Chris Finch, Sep 7, 2006, in forum: Ruby
    Replies:
    3
    Views:
    132
    James Calivar
    Sep 7, 2006
  3. Simon Jackson

    can ruby automate form submission?

    Simon Jackson, Feb 23, 2007, in forum: Ruby
    Replies:
    2
    Views:
    197
    Simon Jackson
    Feb 23, 2007
  4. SC
    Replies:
    3
    Views:
    448
  5. karol
    Replies:
    1
    Views:
    151
Loading...

Share This Page