in reply to Re^2: Need help on expect
in thread Need help on expect

Without knowing the output of the program you're working with, this is just a guess, but perhaps your regex doesn't need to be so specific, and something like qr/Do you want to kill all NetBackup daemons\?/ might be enough?

Replies are listed 'Best First'.
Re^4: Need help on expect
by toaravind (Initiate) on Feb 25, 2015 at 08:43 UTC
    Thanks all, it has been fixed and my perl script is working as expected.