hi
i am using borne shell script to install a product.
In the script i get from the user some input and then to do pkgadd and some sqlplus commands.
I want to capture all the information to the logfile.
if i use , tee command i dont get the user entered input.
can u let me know ,how to capture both the input and output to a log file.
thanks
system
2
You can try the script command - it won't save it if there is a gui interface but will work on patches and pkgadd. Check out man script.
I tried it,but could not use the script command inside the shell script.
script command does not wait till my install script exits.
thanks for ur reply
system
4
Don't put the script command inside a shell script. In your unix session, use it like this:
$ script myscript.txt
$ sqlplus ...
(whatever else you need to do ...)
Ctrl-D
script done on Tue Jan 15 08:39:31 2002
$
All input and output will go to myscript.txt.
as part of the installation i should take care of that.
so inside the shell script ,i should have a way of doing it.
so all the information redirects to a log file
thanks