The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Three scripts for package management on Debian and Ubuntu systems iBot UNIX and Linux RSS News 0 10-29-2008 11:20 AM
Terminal Output to a File ?? varungupta UNIX for Advanced & Expert Users 2 01-28-2008 03:24 PM
how to redirect my output in a new terminal Sayantan SUN Solaris 0 06-29-2007 07:01 AM
lslpp output for Java package Student37 UNIX for Dummies Questions & Answers 1 06-05-2005 05:09 PM
output to terminal andreis High Level Programming 6 10-16-2003 05:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-27-2009
vibhor_agarwali vibhor_agarwali is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 259
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 (permalink)  
Old 03-27-2009
Franklin52 Franklin52 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,318
Try:

Code:
tail -f /var/adm/sw/swagent.log
Regards
  #3 (permalink)  
Old 03-27-2009
vibhor_agarwali vibhor_agarwali is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 259
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 (permalink)  
Old 03-27-2009
Franklin52 Franklin52 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,318
Start the command on another terminal before the installation proces.

Regards
  #5 (permalink)  
Old 03-27-2009
vibhor_agarwali vibhor_agarwali is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 259
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 (permalink)  
Old 03-27-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,576
Why didnt you use | tee <outfile.file>?
  #7 (permalink)  
Old 03-27-2009
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,124
echo hello world > /dev/tty
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0