From: Patchet, Chuck SPAWAR (patchet@spawar.navy.mil)
Date: Wed Mar 31 2004 - 19:35:07 EST
Hello Gurus,
I'm trying to script some automatic package installations on Solaris 8 and I
ran across the following (to me at least) bizarre behaviour:
- If I add the pkgadd manually, and answer the questions interactively,
everything works. For example:
# pkgadd -d /tmp/ANTRagex.pkg
When asked which packages, I type: all
When asked if I consent to running scripts with root permissions, I
answer: y
Package installs correctly.
- So, I now know that 'all' and 'y' are the answers I need. Being
interested in automating this, I remove the package and attempt the
following:
# pkgadd -d /tmp/ANTRagex.pkg << EOF
> all
> y
> EOF
However, this bombs. The install appears to go fine until the second
question (asking about root consent) after which I am told simply:
Installation of <ANTRgex> failed.
Am I missing some subtlety of pkgadd? Am I using some poor scripting? Am I
simply an idiot? Is it too near quitting time?
Appreciate any and all responses, will summarize.
cheers,
Chuck
Chuck Patchet 24221 (PL-SS 600)
SPAWARSYSCEN
53560 Hull St.
San Diego, CA 92152-5001
619.553.5321 Lab 250C
patchet@spawar.navy.mil
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:23 EDT