Hello Tom,

-n will stop if interaction is needed. Instead of echoing y's into  
pkgrm use admin file.

pkgrm:
http://docs.sun.com/app/docs/doc/816-5166/pkgrm-1m?l=en&a=view

admin file:
http://docs.sun.com/app/docs/doc/816-5174/6mbb98uc9?l=en&a=view

Cheers,
Jan

On 11.10.2007, at 0:44, Sherry Moore wrote:

> Or you could just use the "-n" option.
>
> Sherry
>
> On Wed, Oct 10, 2007 at 03:35:28PM -0700, Tom Chen wrote:
>> Hello,
>>
>> The default pkgadd/pkgrm work in interactive mode and there are  
>> multiple prompts to answer. How do I write a shell script to  
>> answer all these prompts automatically?
>>
>> I googled and tried the following,
>> pkgrm -n mypkg and
>> pkgrm mypkg <<EOF
>> y
>> y
>> EOF
>>
>> However, not successful. Any idea?
>>
>> Tom
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to