From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "McCracken, Denise" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: 5.1a Preinstall script nightmares Date: Thu, 21 Nov 2002 15:10:50 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <21C552CF85C64D4A891D47E7A33274A801954CBB@EXBRDY.sunquest.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1037916345 15739 80.91.224.249 (21 Nov 2002 22:05:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 22:05:45 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18EzSB-00045Y-00 for ; Thu, 21 Nov 2002 23:05:43 +0100 Original-Received: (qmail 5703 invoked by uid 5); 21 Nov 2002 22:07:31 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5694 invoked by uid 49493); 21 Nov 2002 22:07:30 -0000 Original-Received: from Denise.McCracken@misyshealthcare.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-1.9/5.0):. Processed in 0.43996 secs); 21 Nov 2002 22:07:30 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 21 Nov 2002 22:07:30 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5Y00KKC5GHZQ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 21 Nov 2002 17:07:29 -0500 (EST) Original-Received: from eximsbrdy.sunquest.com (eximsbrdy.hosp.misyshealthcare.com [149.138.1.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5Y001275G9QT@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 21 Nov 2002 17:07:22 -0500 (EST) Original-Received: by eximsbrdy.sunquest.com with Internet Mail Service (5.5.2656.59) id ; Thu, 21 Nov 2002 15:13:46 -0700 Content-return: allowed Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2656.59) Xref: main.gmane.org gmane.os.tru64.managers:2535 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2535 Well, this was quick. The problem is that 5.1a during the install does not use the read stuff?"Enter some stuff" syntax properly. The answer was to echo the prompts and just do a read. Thanks to all who replied. -----Original Message----- From: McCracken, Denise Sent: Thursday, November 21, 2002 2:46 PM To: tru64-unix-managers@ornl.gov Subject: 5.1a Preinstall script nightmares I'm trying to create a preinstall script for a 5.1a installation, and I'm running into a few problems. The script is supposed to go out to a tape drive and get the install.cdf file. It works perfectly from the 5.1a single-user mode prompt, and doing a 4.0f install, but trying to use it for a 5.1a install, it doesn't work. First of all, I've had to use /bin/ksh. If I try to use /sbin/sh, like the install docs say, I get an error that it can't execute. When I run it from 5.1a install, it can't echo anything to the screen. The example file in the install docs shows using the echo command, so this should work. When I give it the input it is looking for anyway, which is tz5, it goes on and creates the device files (they are 4.0f device file types, but they work from the 5.1a command prompt), and then the tar command comes back with "no input". I can then break out of the installation, run this script by hand and do a restart to finish the install, but I need it to run without any user effort. The script follows. Any ideas would be appreciated. #!/bin/ksh # # This script brings in the install.cdf file for tru64 5.1a upgrade # from a tape drive. It is appended to by the setup program. # # It should never be run from the command line # echo "" read JUNK?"Insert the upgrade directory saveout tape. Press ENTER when ready." echo "" read tapedev?"What is the name of the raw tape device? >" cd /dev ./MAKEDEV $tapedev cd /var/tmp tar xvsf /dev/nrmt0h /install.cdf mt -f /dev/nrmt0h rewind if [ -f /var/tmp/install.cdf ] then echo "The install configuration has been restored from tape." else echo "Fatal error! Unable to restore the configuration!." read JUNK?"Press enter to quit." fi Denise McCracken MiSys Healthcare Systems Denise.McCracken@misyshealthcare.com (520) 570-2521