My original question:
> I have a situation where 'pkgrm' appears in a script, and would like
> 'pkgrm' to effectively remove the package without any questions asked.
> However, even with trying to use the '-n' option, or trying to echo 'y'
> into the command, it still prompts for user input.
> Is there any way that we can force the package to be removed such that
> this script will work, or would we be looking at something like writing an
> expect script?
The solution was by use of the 'admin' file, as described to me by
Mark (Mookie) <firstname.lastname@example.org> who gave me the most complete answer.
> I'm not sure about pkgrm, but I'm reasonably sure it'll perform the
> same as pkgadd in respect to the use of an admin file.
> # cat admin
> # pkgrm -n -a admin SUNWciu8
> Removal of <SUNWciu8> was successful.
Thanks also to:
Asim Zuberi <email@example.com>
Sweth Chandramouli <firstname.lastname@example.org>
-- F W Fox email@example.com Old machines never die - They just get replaced by emulators
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:16 CDT