Aug 1, 2007 #1 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 ?
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 ?
Aug 5, 2007 #2 Annihilannic MIS Jun 22, 2000 6,317 AU 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. Upvote 0 Downvote
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.