I have to call a interactive command from a perl script.The command which I am calling asks user for the conformation and proceed only after user enters yes or no.
Paralley I want to capture output of this executed command to a file.
I know I can not use back tick (`) because, it won't be interactive then. I can't use system() because system will run the command in interactive mode, but I will not be able to capture the output of the command.
I also tried IPC::Open3 but again it was not interactive.
Plz let me know, if somebody has done similar kind of stuff earlier.