The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > 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
unix script to takes the old data from a TXT file and compress them into new file vpandey Shell Programming and Scripting 2 03-05-2008 07:10 AM
splitting a pipe delimited file in unix ddedic Shell Programming and Scripting 4 03-19-2007 09:16 PM
compress a file in unix rujupriya UNIX for Dummies Questions & Answers 5 05-24-2006 05:05 AM
Compress in Unix Sasuke UNIX for Dummies Questions & Answers 1 10-10-2003 04:18 AM
Unix compress-Wintel uncompress rampart1 UNIX for Advanced & Expert Users 3 09-07-2003 01:33 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-25-2005
Registered User
 

Join Date: Oct 2005
Posts: 2
Compress while wrting to a file using a unix pipe

I would like to know if the following can be done.

route output from an sql select directly to a pipe and compress it at the same time.

regards
Albert
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-25-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,493
Oracle example:

Code:
# file = sql.sh
sqlplus -s username/passwd <<EOF
select count(*) from uzrutrf;
exit
EOF
usage
Code:
sq.sh | compress > sql.Z
Reply With Quote
  #3 (permalink)  
Old 10-25-2005
Registered User
 

Join Date: Oct 2005
Posts: 2
Thanks Jim you are a star

Thanks Jim you are a star
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0