Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh and pkgadd

Status
Not open for further replies.

dandan123

Technical User
Sep 9, 2005
505
US
I would like to install a package on a bunch of servers. I'm trying to write a script on the lines of -

scp package <to destination>
ssh $remotehost 'pkgadd -d package'

How do I get the prompts that pkgadd generates on my local host ?
 
Hi dandan123,

The best thing is to scp over an "admin" file with the package, and use the syntax pkgadd -n -a adminfile -d packagefile all.

The admin file contains something like (an example of one I used recently to upgrade and overwrite an existing package):

[tt]mail=
instance=overwrite
partial=ask
runlevel=ask
idepend=ask
rdepend=ask
space=ask
setuid=ask
conflict=ask
action=nocheck
basedir=default[/tt]

Type man -s 4 admin for documentation of the contents of an admin file.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top