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.