niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » AIX
why the pipe is used. ?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Mark Taylor
*nix forums Guru Wannabe


Joined: 21 Feb 2005
Posts: 292

PostPosted: Thu Feb 10, 2005 6:37 pm    Post subject: Re: why the pipe is used. ? Reply with quote

looks like your using a named pipe to compress data... I am making an
educated guess here as all the info is not in the bits you have posted.
i am assuming there is a function or script or homegrown binary called
write_ ?

i.e. this is used to take an export from a databse into an named pipe,
then compress the data from the named pipe into a compressed file ...
This allows you to export files larger than the filesystem can handle
as they are compressed on the fly through the pipe.

mkno ? thats a typo --> mknod = make node "p" = make pipe ( you can use
mkfifo )

HTH
Mark Taylor
Back to top
tridentadm
*nix forums beginner


Joined: 13 May 2005
Posts: 4

PostPosted: Thu Feb 10, 2005 3:45 pm    Post subject: why the pipe is used. ? Reply with quote

does anyone know why this pipe is used.. and what really is going on
in the below script.


read exp_cmp_pipe
echo "Attempt to remove $exp_comp_pipe"
echo 'Ignore "rm: cannot access $exp_cmp_pipe" error message'
rm $exp_cmp_pipe

mkno $exp_cmp_pipe p
echo "nohup compress < $exp_cmp_pipe > $filename.comp & " >
write_$exp_cmp_pipe
chmod +x write_$exp_cmp_pipe
write_$exp_cmp_pipe
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 10:38 pm | All times are GMT
navigation Forum index » *nix » AIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts PIPE redirection as stream file ? pierre.bru@gmail.com VMS 2 Wed Jul 19, 2006 11:51 pm
No new posts Pipe problem and procmail Bostjan Muller Debian 0 Mon Jul 17, 2006 6:30 am
No new posts bash pipe on while read hangs Robert Mark Bram shell 2 Thu Jul 13, 2006 2:36 pm
No new posts FreeBSD + pkg_add = Broken pipe Ed Jensen FreeBSD 3 Wed Jul 12, 2006 3:18 pm
No new posts Need info! Detecting data in a pipe (|) matt@bobsroom.ca shell 8 Tue Jul 04, 2006 6:05 pm

Satellite TV | Credit Cards | Loans | Car Credit | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1892s ][ Queries: 20 (0.1237s) ][ GZIP on - Debug on ]