The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
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 11:10 AM
splitting a pipe delimited file in unix ddedic Shell Programming and Scripting 4 03-20-2007 01:16 AM
compress a file in unix rujupriya UNIX for Dummies Questions & Answers 5 05-24-2006 09:05 AM
Compress in Unix Sasuke UNIX for Dummies Questions & Answers 1 10-10-2003 08:18 AM
Unix compress-Wintel uncompress rampart1 UNIX for Advanced & Expert Users 3 09-07-2003 05:33 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 10-25-2005
booyena1 booyena1 is offline
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
  #2 (permalink)  
Old 10-25-2005
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,759
Oracle example:

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

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

Thanks Jim you are a star
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 12:16 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