Hi All,
   
       I want to remove some packages install on remote solaris through script. 
I am able to run simple command like ls -l ,ls through perl script by using 
Net::Telnet module.
   
  Now I want my script should remove all the packages installed on remote 
solaris
   
  means i want to remove 
   
  pkgrm -R `pwd` command but the problem is that it requires user to manually 
enter yes/no to remove the pkgs
   
  suppose i will issue pkgrm -R `pwd`  then it asks
   
  The follwing pkgs are install do u want to remove this package[y]  
  here I required to enter y
   then it ask 
  do u want to remove xxxx.pkg ?
  here also I required to enter y
   
  I need a way so that my script will send those and I don't have to enter 
commands
   
  how my script will be interactive so that i can enter y through my script
  I want to run my script on my PC and the  packages are installed on a remote 
Solaris box.
   
  Thanks 

       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Reply via email to