*nix Thread, Pipes in Technical; You got to love the Unix shell, I've been Unix everyday for twenty plus years and I still find new ...
-
5th November 2009, 07:04 AM #1 Pipes
You got to love the Unix shell, I've been Unix everyday for twenty plus years and I still find new commands/utils that make my day easier.
Check out Pipe Viewer "pv" and watch the data transferring between pipes, in terms of data rate.
Replace your
Code:
$ ( cd /source ; tar cf - .) | (cd /target ; tar xf - )
with
Code:
$ (cd iso ; tar cf - . ) | pv | (cd ~/Desktop/test ; tar xf - )
24MB 0:00:01 [ 35MB/s] [<=> ]
The following IBM article explains it better than I could.
Speaking UNIX: Peering into pipes
This is now installed on all my Linux/Solaris boxes.
Ubuntu - sudo apt-get install pv
Solaris - Freeware List for SPARC and Solaris 10
Andy
-
Thanks to apaton from:
Chillibear (5th November 2009)
-
IDG Tech News
-
5th November 2009, 01:22 PM #2 Have to say, when I learned about pipes at uni it certainly makes scripting alot easier
-
SHARE:
Similar Threads
-
By russdev in forum General Chat
Replies: 1
Last Post: 29th December 2008, 09:10 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules