Sponsored Content
Full Discussion: to log a installation
Top Forums Shell Programming and Scripting to log a installation Post 13506 by LivinFree on Friday 18th of January 2002 08:21:30 AM
Old 01-18-2002
What about using echo to put their responses in another file? This could also be used to tell you about their environment, where in the script they were, etc...
for example:
Code:
#!/bin/sh
echo > .in_script.log
echo "Install script started at `date`" >>.in_script.log
echo "Started in `pwd`" >>.in_script.log
echo " What is your name? \c"
read cust_name
echo "Customer name is $cust_name" >>.in_script.log
echo " Would you like to [I]nstall, or [U]ninstall? \c"
read in_question
echo "User selected $in_question for install / uninstall" >>.in_script.log
case $in_question in
i*|I*) blah ;;
u*|U*) blah2 ;;
*) echo "Eek! " ;;
esac
{.......}

It may seem like a pain now, but it will definitely be worth it when diagnosing problems...
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Installation ?????

I m trying to Install Oracle 8i on Sun Solaris 8.....I have read the installation manuals....everything was ok, but what confused me was directories ORACLE_BASE, ORACLE_HOME, u1, u2, u3 ????????????????? Can anybody pls. tell me how many directories should i create, subdirectories and in... (1 Reply)
Discussion started by: ocpguy
1 Replies

2. UNIX for Advanced & Expert Users

Installation

Hai Friends How can i instal only the linux kernel in a system. Thanks in advance Collins (3 Replies)
Discussion started by: collins
3 Replies

3. Solaris

installation of Solaris: installation bypasses network config.

hello solaris friends, I've tried installing Sun Solaris 10.0, but everytime it seems to bypass the network config. screen that looks similar to this...here's the url: http://www.hup.hu/old/images/hup/Solaris/Sol10beta7/9.png I'm able to install it all the way through but I get no... (2 Replies)
Discussion started by: cadmiumgreen
2 Replies

4. Linux

OS Installation

Hello, Can anyone suggest me the source for getting the Linux OS, I have done a partitions in my system and dedicated one partition for Linux with the windows. Please suggest me the websites where I can get the s/w. Thankx S (1 Reply)
Discussion started by: sbasetty
1 Replies

5. Ubuntu

installation

Hi, Could you please provide me the url's for linux software on x86 platform means on pentiunm processes and installtion documentation? Regards, Rajesh (2 Replies)
Discussion started by: pmrajesh21
2 Replies

6. SuSE

How to log Installation-Activity ??

Hi @ All, short question: i want to log my cpan Installation in a text-File. My first try was cpan -i module | tee /home/install.txt but this donīt logs my inputs, eg. what i typed in when cpan asks where are my progs or which mirror i want. Can somebody help me with this? Regards, ... (1 Reply)
Discussion started by: jackcracker
1 Replies

7. AIX

Installation

am new to aix ...am gng to install aix 6.1 in new box.... can you tell after installation how can i say tht my installation is success..... and whr do installation related log will be saved... (2 Replies)
Discussion started by: udtyuvaraj
2 Replies

8. Solaris

How to tail an installation log?

Hi Guys, when installing an application, I believe there is a log file which is create to log the progress of the installation. What I will like to know is, how do you tail the start log file to see the installation as it is progressing. I will really appreciate your help. Thanks (1 Reply)
Discussion started by: cjashu
1 Replies

9. Solaris

Solaris 10 flash installation - fatal error. Solaris installation program exited.

Not very helpful to say the least. Seems to read the flar file and go through the upgrade and then come up with this error. Any ideas? (1 Reply)
Discussion started by: psychocandy
1 Replies
xpacmdnew(3)							SAORD Documentation						      xpacmdnew(3)

NAME
XPACmdNew - create a new XPA public access point for commands SYNOPSIS
#include <xpa.h> XPA XPACmdNew(char *class, char *name); DESCRIPTION
Create a new XPA public access point for commands that will share a common identifier class:name. Enter this access point into the XPA name server, so that it can be accessed by external processes. XPACmdNew() returns an XPA struct. It often is more convenient to have one public access point that can manage a number of commands, rather than having individual access points for each command. For example, it is easier to command the ds9 image display using: echo "colormap I8" | xpaset ds9 echo "scale log" | xpaset ds9 echo "file foo.fits" | xpaset ds9 then to use: echo "I8" | xpaset ds9_colormap echo "log" | xpaset ds9_scale echo "foo.fits" | xpaset ds9_file In the first case, the commands remain the same regardless of the target XPA name. In the second case, the command names must change for each instance of ds9. That is, if a second instance of ds9 called DS9 were running, it would be commanded either as: echo "colormap I8" | xpaset DS9 echo "scale log" | xpaset DS9 echo "file foo.fits" | xpaset DS9 or as: echo "I8" | xpaset DS9_colormap echo "log" | xpaset DS9_scale echo "foo.fits" | xpaset DS9_file Thus, in cases where a program is going to manage many commands, it generally is easier to define them as commands associated with the XPACmdNew() routine, rather than as separate access points using XPANew(). When XPACmdNew() is called, only the class:name identifier is specified. Each sub-command is subsequently defined using the XPACmdAdd() routine. SEE ALSO
See xpa(7) for a list of XPA help pages version 2.1.14 June 7, 2012 xpacmdnew(3)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy