Visit Our UNIX and Linux User Community


creating log while install


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users creating log while install
# 1  
Old 01-14-2002
creating log while install

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
# 2  
Old 01-14-2002
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.
thehoghunter
# 3  
Old 01-14-2002
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
# 4  
Old 01-15-2002
Don't put the script command inside a shell script. In your unix session, use it like this:
Code:
$ 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.
Jimbo
# 5  
Old 01-15-2002
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

Previous Thread | Next Thread
Test Your Knowledge in Computers #151
Difficulty: Easy
In 1975, adopting Unix required a license from Bell Laboratories that cost $20,000 USD.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parsing a log file and creating a report script

The log file is huge and lot of information, i would like to parse and make a report . below is the log file looks like: REPORT DATE: Mon Aug 10 04:16:17 CDT 2017 SYSTEN VER: v1.3.0.9 TERMINAL TYPE: prod SYSTEM: nb11cu51 UPTIME: 04:16AM up 182 days 57 mins min MODEL, TYPE, and SN:... (8 Replies)
Discussion started by: amir07
8 Replies

2. UNIX for Advanced & Expert Users

Help with creating script to delete log files/folders

Hi I am new to Linux / scripting language. I need to improve our Linux servers at work and looking to claim some space my deleting log files/ folders on a 5 day basis. Can someone help me with creating a script to do so. Any sample script will be helpful.:b: Regards (2 Replies)
Discussion started by: sachinksl
2 Replies

3. Shell Programming and Scripting

Creating Log files from Scripts

Hi I would like to create a log file to track the execution of my script. Example, if there were any errors, if it passed or failed etc. How do I go about doing this. My log file will be saved to this location: /var/log/import.log How do I specify the directory? I have been... (1 Reply)
Discussion started by: ladyAnne
1 Replies

4. Solaris

Creating A Solaris Zone - Unable to install - Are network settings required?

Hi i have created a solaris zone but have not yet connected any network cables for this new zone, can i set the zone up without running the command 'add net' and not adding an ip or physical interface? i tried to add dummy internet settings and get this zonecfg:coddr> add net... (4 Replies)
Discussion started by: newbiesolaris10
4 Replies

5. Linux

install macbook pro fedora10 ???((<<if can install, how to install? >> ))

If may install can Tells everybody ??? (0 Replies)
Discussion started by: kzBSD
0 Replies

6. Shell Programming and Scripting

help with creating new log file

Hello, The problem I am having now is... daily log file (xxxx.0228) exceeds it's max limit, stops logging and brings the daemon down. It won't start the daemon untill a new log file is created which happens at midnight. Once new daily log file starts, it brings up the daemon back up and starts... (0 Replies)
Discussion started by: john89011
0 Replies

7. Linux

Creating MD-raid devices - post install

Hi everyone. I have a machine which upon to recently only had one hard disk. Now I have another one identical in size and speed and want create a raid set from those two. The partition layout is that I have three partitions, first one for /boot, the second for / and then a huge LVM partition... (1 Reply)
Discussion started by: Sprellarinn
1 Replies

8. Shell Programming and Scripting

Help with a shell script for creating a log file

I have a schell script that runs continously on an AIX system. It is actually started from another shell script with the "ksh -x" command and then I just write the output to a log file. This causes the log files to be filled with mostly useless information. I would like to modify this script to... (2 Replies)
Discussion started by: heprox
2 Replies

9. Solaris

creating log files for a backup script on solaris

I have a simple backup script that I am running to back up drives across the network. However I need to have detailed log files for this script such as time backup started, what was backed up, if there were any errors and the time that the backup was complete. I would also like the script to... (3 Replies)
Discussion started by: valicon
3 Replies

10. UNIX for Dummies Questions & Answers

Creating Red Hat install CD

Good morning, I'm currently "Trying" to download Red Hat. Which files should I burn on the CD for the install. I imagine it's the IOS files, but I'd like to make sure. I have 2 files, Disk_1 (647 mb) and Disk_2 (641 mb). Do I burn these files to a disk as is or do I need to do something... (1 Reply)
Discussion started by: DFR574
1 Replies

Featured Tech Videos