K
king
I am running a find command and the o/p i am saving in a file. The
content of the file is as bellow.
/opt/home/121/UnixAgent/bin/agent_uninstall
/opt/var/122/UnixAgent/bin/agent_uninstall
/opt/home/123/UnixAgent/bin/agent_uninstall
cannot open /proc/19364: No such file or directory
cannot open /proc/19317: No such file or directory
cannot open /proc/19365: No such file or directory
cannot open /proc/19355: No such file or directory
cannot open /proc/19342: No such file or directory
/opt/home/124/UnixAgent/bin/agent_uninstall
I need to run all agent_uninstall scripts like this.
system ("/opt/home/121/UnixAgent/bin/agent_uninstall");
when I will run this script I will get two interactive prompts where I
need to give two inputs
one is "/opt/home/121"
and the otherone is "y"
so I will have to extract all these /opt/home/121, /opt/home/124, /opt/
var/122 and give as input
after running the uninstall script.
How to do the user interactive prompt automated using perl.
And how to save all the /opt/home/121, /opt/home/124, /opt/var/122 in
a array and give then as input.
content of the file is as bellow.
/opt/home/121/UnixAgent/bin/agent_uninstall
/opt/var/122/UnixAgent/bin/agent_uninstall
/opt/home/123/UnixAgent/bin/agent_uninstall
cannot open /proc/19364: No such file or directory
cannot open /proc/19317: No such file or directory
cannot open /proc/19365: No such file or directory
cannot open /proc/19355: No such file or directory
cannot open /proc/19342: No such file or directory
/opt/home/124/UnixAgent/bin/agent_uninstall
I need to run all agent_uninstall scripts like this.
system ("/opt/home/121/UnixAgent/bin/agent_uninstall");
when I will run this script I will get two interactive prompts where I
need to give two inputs
one is "/opt/home/121"
and the otherone is "y"
so I will have to extract all these /opt/home/121, /opt/home/124, /opt/
var/122 and give as input
after running the uninstall script.
How to do the user interactive prompt automated using perl.
And how to save all the /opt/home/121, /opt/home/124, /opt/var/122 in
a array and give then as input.