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 > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-discuss mailing list > opensolaris-discuss@opensolaris.org -- Sherry Moore, Solaris Kernel Development http://blogs.sun.com/sherrym _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org