How to wrap an interactive command

Discussion in 'Perl Misc' started by Wuming Gong, Aug 3, 2005.

  1. Wuming Gong

    Wuming Gong Guest

    Hi,

    There is an interactive command running under linux console (actually,
    it is command "efn" in secondary structure predicting package mfold).
    It reads one input data and asks several questions one by one and I
    have to type "yes", "no" or others under the prompt. However, I hope to
    write a perl to wrap this command and parse a bunch of data
    automatically. Could anyone give me some hints on how to write such
    wrapper?

    Best Regards,

    Wuming Gong
    Wuming Gong, Aug 3, 2005
    #1
    1. Advertising

  2. Wuming Gong

    Guest

    Wuming Gong wrote:
    > Hi,
    >
    > There is an interactive command running under linux console (actually,
    > it is command "efn" in secondary structure predicting package mfold).
    > It reads one input data and asks several questions one by one and I
    > have to type "yes", "no" or others under the prompt. However, I hope to
    > write a perl to wrap this command and parse a bunch of data
    > automatically. Could anyone give me some hints on how to write such
    > wrapper?


    vvvvvv
    I >>>>Expect<<<< there's something to do this on CPAN.
    ^^^^^^

    Well, you did ask for a hint.
    , Aug 3, 2005
    #2
    1. Advertising

  3. Wuming Gong

    Wuming Gong Guest

    Wuming Gong, Aug 4, 2005
    #3
  4. Wuming Gong

    Wuming Gong Guest

    See function _run() in above page.

    Wuming
    Wuming Gong, Aug 4, 2005
    #4
    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. WJ
    Replies:
    2
    Views:
    484
  2. Charles Fox
    Replies:
    3
    Views:
    1,738
    Charles Fox
    Apr 15, 2005
  3. Aaron Fude

    To wrap or not to wrap?

    Aaron Fude, May 8, 2008, in forum: Java
    Replies:
    12
    Views:
    697
    Chronic Philharmonic
    May 10, 2008
  4. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 22, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    228
    Art Werschulz
    Sep 22, 2003
  5. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 24, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    245
    Anno Siegel
    Sep 25, 2003
Loading...

Share This Page