On 9/4/07, ppp ppp <[EMAIL PROTECTED]> wrote:
>
> 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

See Expect.pm on CPAN. It's a perl implementation of many of Expect's
features. It's designed to handle exactly this situation.

HTH,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

Reply via email to