HI, While using expect i am getting some error.. <<<<SNIPPET>>> Can't locate Expect.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at upgrade.pl line 5. BEGIN failed--compilation aborted at upgrade.pl line 5. To know the issue better, i am pasting here the output i need to handle: While invoking the upgrade.sh script via a perl script, it will have the output.... =========================================================== root@TB3# ./UPGRADE.sh Upgrade takes time to complete. Do not press CTRL-C hereafter. Stopping the service... ./catalina.sh: line 330: /usr/java/jdk1.6.0_31/bin/java: No such file or directory Verifying the CAM db schema... CAM db schema is valid, upgrade to proceed normally Upgrading core rpms... This will take a few minutes, please wait. Currently installed Windows NAC Agent version is 4.9.1.5. Do you want to change the Windows NAC Agent to version 4.9.2.7 (y/n)? y y Currently installed Mac Agent version is 4.9.1.682. Do you want to change the Mac Agent to version 4.9.2.702 (y/n)? y y Going to upgrade the manager rpm ============================================================ After invoking the upgrade.sh from a perl script, it needs to neglect all the output lines and when "Currently installed Windows NAC Agent version is 4.9.1.5. Do you want to change the Windows NAC Agent to version 4.9.2.7 (y/n)? y" , i need to have an option to enter the user input... HOPE i am clear with my issue.. Thanks in advance, SIN.

In reply to Re: User input while process is running. by Anonymous Monk
in thread User input while process is running. by siva.snimmaka

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.