Problem
I want to install Support Level Supplement (SLS) OSS600A or OSS601A non-interactively on my SCO OpenServer 5 system. Can I use custom(ADM) from the command line to do this?
Solution
The preferred method of installing products and patches is to use
custom in the interactive mode (using scoadmin software from the
command line, or clicking on Software Manager on your graphical
desktop). In non-interactive mode, important errors and warnings
may be missed. In some cases the installation may fail and you will
not know why. Also, the installation may halt if waiting for user
input.If you do want to non-interactively install these patches, it may be a good idea to redirect stdout and stderr to a file for later analysis. To do this, place the following after the complete command to custom:
> /tmp/logfile 2>&1An example would be:# custom -p SCO:SLS -i -z /tmp > /tmp/logfile 2>&1Note that this will prevent anything from being written to your screen during the installation. If the installation is hanging for some reason, you will need to view /tmp/logfile to discover why.
If you want to view the output on your screen and also log it to a file, one method is to use the script command:
# script /tmp/logfile
# custom -p SCO:SLS -i -z /tmp 2>&1
# exitShell scripting your installation---------------------------------When installing a patch to a product or component, custom checks the product's files against the product database. If system files have been modified or the product database does not get updated correctly, custom will pause the installation to ask the user if they want to ignore the warning and continue, or cancel. This is an important function of custom and verification errors should be investigated.
However, many times the verification errors are harmless and can safely be ignored. If this is the case, a shell script can be written that will answer custom's prompt so the installation may continue. SLSs OSS600A and OSS601A patch several different components of the operating system. Thus, it is possible that you may have to answer more than one question. The script can be tailored with as many answers as you like and it will not matter if you provide more answers than are needed.
Here is an example of such a script where the answer "i" has been chosen to ignore up to 7 components with verification errors and then continue:
-------------------------------------------------------------------
#!/bin/sh/etc/custom -p SCO:SLS -i -z /tmp << eof
i
i
i
i
i
i
i
eof
-------------------------------------------------------------------Another useful script might be to answer "ca" to cancel the installation if any verification errors have been found, and mail a copy of the logfile to the system administrator:
-------------------------------------------------------------------
#!/bin/sh/etc/custom -p SCO:SLS -i -z /tmp > /tmp/logfile 2>&1 << eof
ca
eof
cat /tmp/logfile | mail -s "Verification Errors" root
-------------------------------------------------------------------Installation of OSS600A for SCO OpenServer 5.0.5------------------------------------------------Prior to installing this patch to SCO OpenServer 5.0.5, it is strongly recommended that you read these Technical Articles for guidelines and instructions:
ta110079, "What is SLS OSS600A, the Y2K SLS for SCO OpenServer 5.0.5 + RS505A?"
ta110090, "Special notes and recommendations before installing OSS600A, the Year 2000 Supplement for SCO OpenServer 5.0.5."
To install SLS OSS600A:1. Prepare the media for installation.Download the OSS600A VOL files from the SLS/oss600a directory on SCO's ftp site. Place the files in the /tmp directory on the local server. The files should include:
VOL.000.000
VOL.001.000
oss600a.ltr2. Install the SLS with the following command:
# custom -p SCO:SLS -i -z /tmpSee the section above, "Shell scripting your installation", for pertinent information about verification errors.
3. After applying OSS600A, you must reboot your system in order for the Y2K fixes in the dynamic shared C language library (lib.so.1) to become fully active. You do not have to reboot immediately. However, you MUST reboot before January 1, 2000.
SCO strongly recommends that you reboot as soon as possible after installing SLS OSS600A. There are no problems that are currently known to occur when the system is in the state of having the SLS applied, but not having been rebooted. However, no methodical testing of a system in this state has been conducted. Therefore, it is strongly recommended that you avoid leaving your system in this state for an extended length of time.
Installation of OSS601A for SCO OpenServer 5.0.4------------------------------------------------Prior to installing this patch to OpenServer 5.0.4, it is strongly recommended that you read these Technical Articles for guidelines and instructions:
ta110077, "What is addressed by SLS OSS601A, the Year 2000 Supplement for SCO OpenServer 5.0.2 and 5.0.4?"
ta110091, "Special notes and recommendations before installing OSS601A, the Year 2000 Supplement for SCO OpenServer 5.0.2 and 5.0.4."
To install SLS OSS601A:1. Prepare the media for installation.Download the OSS601A VOL files from the SLS/oss601a directory on SCO's ftp site. Place the files in the /tmp directory on the local system. The files should include:
VOL.000.000
VOL.001.000
VOL.002.000
VOL.003.000
VOL.004.000
oss601a.ltr2. SLS OSS601A contains two components: the Year 2000 Supplement, and a Software Manager patch which is only for OpenServer 5.0.4. If your system is running OpenServer 5.0.4, you MUST install the new version of the Software Manager BEFORE you can install the Year 2000 Supplement. To install the Software Manager patch, type:
# custom -p SCO:SoftMgr -i -z /tmp3. The Year 2000 Supplement requires some user interaction. During the installation, custom will display:
These patches cannot be installed because the software they modify is not installed:
(followed by a list of patches)These patches can be installed:(followed by a list of patches)Please enter one of the following: 'ca' To cancel 'i' To ignore the error, and continue
If you will be monitoring the installation, you can install with:
# custom -p SCO:SLS -i -z /tmpand type "i" to continue when prompted.
If you wish to make the above non-interactive, see the section above entitled "Shell Scripting your installation".
4. After applying SLS OSS601A, you must reboot your system in order for the Y2K fixes in the dynamic shared C language library (lib.so.1) to become fully active. You do not have to reboot immediately. However, you MUST reboot before January 1, 2000.
SCO strongly recommends that you reboot as soon as possible after installing SLS OSS601A. There are no problems that are currently known to occur when the system is in the state of having the patch applied, but not having been rebooted. However, no methodical testing of a system in this state has been conducted. Therefore, it is strongly recommended that you avoid leaving your system in this state for an extended length of time.
Installation of OSS601A for SCO OpenServer 5.0.2------------------------------------------------Prior to installing this patch to OpenServer 5.0.2, it is strongly recommended that you read these Technical Articles for guidelines and instructions:
ta110077, "What is addressed by SLS OSS601A, the Year 2000 Supplement for SCO OpenServer 5.0.2 and 5.0.4?"
ta110091, "Special notes and recommendations before installing OSS601A, the Year 2000 Supplement for SCO OpenServer 5.0.2 and 5.0.4."
To install the patch:1. Prepare the media for installation.Download the OSS601A VOL files from the SLS/oss601a directory on SCO's ftp site. Place the files in the /tmp directory on the local system. The files should include:
VOL.000.000
VOL.001.000
VOL.002.000
VOL.003.000
VOL.004.000
oss601a.ltr2. SLS OSS601A contains two components: the Year 2000 Supplement and a Software Manager patch which is for SCO OpenServer 5.0.4 ONLY. If your system is running OpenServer 5.0.2 you do not need to, and will not be able to, install the Software Manager patch.
3. Install the Year 2000 patch with the following command:
# custom -p SCO:SLS -A -z /tmpSee the section above, "Shell scripting your installation", for pertinent information about verification errors.
4. After applying OSS601A, you must reboot your system in order for the Y2K fixes in the dynamic shared C language library (lib.so.1) to become fully active. You do not have to reboot immediately. However, you MUST reboot before January 1, 2000.
SCO strongly recommends that you reboot as soon as possible after installing SLS OSS601A. There are no problems that are currently known to occur when the system is in the state of having the SLS applied, but not having been rebooted. However, no methodical testing of a system in this state has been conducted. Therefore, it is strongly recommended that you avoid leaving your system in this state for an extended length of time.
See also
ta110077, "What is addressed by SLS OSS601A, the Year 2000 Supplement for SCO OpenServer 5.0.2 and 5.0.4?"
ta110091, "Special notes and recommendations before installing OSS601A, the Year 2000 Supplement for SCO OpenServer 5.0.2 and 5.0.4."
ta110079, "What is SLS OSS600A, the Y2K SLS for SCO OpenServer 5.0.5 + RS505A?"
ta110090, "Special notes and recommendations before installing OSS600A, the Year 2000 Supplement for SCO OpenServer 5.0.5."
ta105490, "How can I use custom to install products or patches from the command line?"
ta105902, "Unable to initialize device" when installing a media image on SCO OpenServer.
The manual page for custom(ADM)