Output of Custom package scripts to terminal


 
Thread Tools Search this Thread
Operating Systems HP-UX Output of Custom package scripts to terminal
# 1  
Old 03-27-2009
Output of Custom package scripts to terminal

Hi,

I am doing some testing with creation of depots on HP-UX systems (11.11).

Want to display some echo statements based on the processing during checkinstall, pre & postinstall scripts on the terminal.

The echo statements are getting directed to /var/adm/sw/swagent.log
I want to display them at the terminal itself while the installation process is going on.
If I write "tail /var/adm/sw/swagent.log", that doesn't get displayed on terminal during the installation process.

How can i do it?
Thanks
# 2  
Old 03-27-2009
Try:

Code:
tail -f /var/adm/sw/swagent.log

Regards
# 3  
Old 03-27-2009
Where?

If i do that after the install ends, my purpose is defeated as i want to see the output runtime.
If i do that during the installation process from any custom script, i still not get the output on terminal.
# 4  
Old 03-27-2009
Start the command on another terminal before the installation proces.

Regards
# 5  
Old 03-27-2009
That are workarounds.

Isn't it possible by any way to display the progress of custom scripts by "echo" statements on the same terminal in any way.
# 6  
Old 03-27-2009
Why didnt you use | tee <outfile.file>?
# 7  
Old 03-27-2009
echo hello world > /dev/tty
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Awking custom output

i have data that can look like this: echo "Master_Item_Service_is_down=0_njava_lang_NoClassDefFoundError=0_njava_lang_OutOfMemoryError=1_nemxCommonAppInitialization__Error_while_initializing=0_nINFO__Stopping_Coyote_HTTP_1_1_on_http_8080=7_nThe_file_or_directory_is_corrupted_and_unreadable=0_n" ... (7 Replies)
Discussion started by: SkySmart
7 Replies

2. Solaris

IPS custom package user source

Hello guys, I'm new to this forum and got a question which may be quite uncommon. I created a custom IPS package (using this How to) with some software I have to install frequently to different Solaris 11 zones (MongoDB to be precise). This software will be installed under "/opt/mongodb" and... (1 Reply)
Discussion started by: dheitepriem
1 Replies

3. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies

4. Red Hat

Set Proxy In The Terminal & problem Package Installing

Centos Behind The Proxy Server In My System , How Can I Set In Terminal Proxy ( Username & Password ) When Using The Command yum & rpm online I Will Respond Error Thank You For Your Guidance (28 Replies)
Discussion started by: mnnn
28 Replies

5. Shell Programming and Scripting

Custom wget output

The below hides the messy commands of wget #!/bin/bash cd 'C:\Users\cmccabe\Desktop\wget' wget -O getCSV.txt http://172.24.188.113/data/getCSV.csv progressfilt () { local flag=false c count cr=$'\r' nl=$'\n' while IFS='' read -d '' -rn 1 c do if $flag ... (5 Replies)
Discussion started by: cmccabe
5 Replies

6. Red Hat

Custom output on FIND

I have a file, ENV.doc somewhere in my home directory. I want to know where the file is located in my sub directories using FIND. But, I want to display only the relative path along with the file name. Thanks, (6 Replies)
Discussion started by: ashok.g
6 Replies

7. Red Hat

Custom package installation using kickstart

Hi there, I've started playing around with Linux a few days back, as part of my intenship. I was wondering if there is anyway I can install custom packages (non RPM packages...say like Oracle) as a part of Kickstart. My machines are running RHEL 4. Thanks a lot :) (1 Reply)
Discussion started by: iman453
1 Replies

8. Shell Programming and Scripting

Convert collection of scripts into a software package

Hi, I have a "package" of BASH shell scripts. This package consists of a master script (where users specify processing variables), and sub-scripts (the master script determines which of these are called, and in which order). These scripts are used to process data related to my field... (1 Reply)
Discussion started by: msb65
1 Replies

9. AIX

AIX custom package install query

I have created a .bff package for an app to tbe installed on AIX servers across regions. I am pretty new to the AIX mode of packaging using mkinstallp but I have been able to get the same done. I installed the same on the server in which i created the package and the application was deployed... (9 Replies)
Discussion started by: jobbyjoseph
9 Replies

10. AIX

Custom Packaging scripts

Hi, I am creating a test package and putting echo statements in the custom scripts (preinstall, postinstall, preremove, etc). Here is the template file Pre-installation Script: <pre-install script> Post-installation Script: <post-install script> These are getting called. How do i... (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies
Login or Register to Ask a Question