pipebench(1)pipebench(1)NAME
pipebench - Shows speed of stdin/stdout communication
SYNOPSIS
pipebench [ -ehqQIoru ] [ -s file | -S file ] [ -b bufsize ]
DESCRIPTION
Measures the speed of stdin/stdout communication.
OPTIONS -h Displays a help message and exits.
-e If an error occurs, exit (breaking the pipe between stdin and stdout. By default an error message is printed to stderr and the pro-
gram continues.
-q Only show summary stats.
-Q Don't show running speed or summary stats. Same as -q -o. Can be used to play with buffer size.
-o Don't show summary.
-b bufsize
Use this buffer size, in bytes.
-r Just show raw speed, no fancy stuff. And no summary.
-s file
Write status to file instead of stderr.
-S file
Write status to file instead of stderr.
-I Use 1kB = 1000B, instead of the default 1024B.
-u Don't convet to units (kilo, Mega, etc...)
EXAMPLES
Benchmark and show progress of backup
# (cd /home/; tar cf - .) | pipebench | (cd /mnt/backup/; tar xf -)
A number to brag to your friends about
$ dd if=/dev/zero bs=80k count=60k 2> /dev/null | ./pipebench -q > /dev/null
BUGS
No known bugs... yet.
SEE ALSO dd(1), cat(1)AUTHOR
Pipebench was written by Thomas Habets <thomas@habets.pp.se>
pipebench 18th Apr, 2003 pipebench(1)
Check Out this Related Man Page
FD(4) BSD Kernel Interfaces Manual FD(4)NAME
fd, stdin, stdout, stderr -- file descriptor files
DESCRIPTION
The files /dev/fd/0 through /dev/fd/# refer to file descriptors which can be accessed through the file system. If the file descriptor is
open and the mode the file is being opened with is a subset of the mode of the existing descriptor, the call:
fd = open("/dev/fd/0", mode);
and the call:
fd = fcntl(0, F_DUPFD, 0);
are equivalent.
Opening the files /dev/stdin, /dev/stdout and /dev/stderr is equivalent to the following calls:
fd = fcntl(STDIN_FILENO, F_DUPFD, 0);
fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
fd = fcntl(STDERR_FILENO, F_DUPFD, 0);
Flags to the open(2) call other than O_RDONLY, O_WRONLY and O_RDWR are ignored.
IMPLEMENTATION NOTES
By default, /dev/fd is provided by devfs(5), which provides nodes for the first three file descriptors. Some sites may require nodes for
additional file descriptors; these can be made available by mounting fdescfs(5) on /dev/fd.
FILES
/dev/fd/#
/dev/stdin
/dev/stdout
/dev/stderr
SEE ALSO tty(4), devfs(5), fdescfs(5)BSD June 9, 1993 BSD
I want to know how can i do a backup for two diferents subdirectories ?
For example
/home/data/test.txt
/public/now/real.txt
i know that i have to do the next....
pwd
/home/data
tar -cvt /dev/st0 ./*
with that i know that test.txt is going to go to the tape but i dont know how... (1 Reply)
Im trying to use tar to backup the os directories. I have a file called bdirs which contains a list of the directories that im trying to backup:
/bin
/dev
/devices
/etc
/export
/home
/kernel
/lib
/local
/mnt
/opt
/platform
/proc
/sbin
start
/usr
/var
/vol (3 Replies)
Hey everyone,
i just want to backup data with tar. I know it works with:
tar cvf. To show which data i have saved i can use tar tvf. But how can i do it simoultanous, that unix not first has to save my data to disk and after that read the data again to show me the list of my saved data?
Please... (2 Replies)
Hi everyone!
Well, this is the thing.. I sent a process's stdout to /dev/null. This process
is very time consuming and after a week it keeps running, what I need is
to switch the stdout back to screen to see what's going on.
Anyone know if it's possible and how to do it?
Thanks and... (3 Replies)
Hello, help me please.
I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? :
Command : failed stdout: yes stderr: no
+---------------------------------------------------------------------+
System Backup Image Space Information
(Sizes are displayed in... (4 Replies)
Hi friends
I am facing one problem while redirecting the out of the stderr and stdout to a file
let example my problem with a simple example
I have a file (say test.sh)in which i run 2 command in the background
ps -ef &
ls &
and now i am run this file and redirect the output to a file... (8 Replies)
Hi all
I've run into a snag in a program of mine where part of what I entered in at the start of run-time, instead of the current value within printf() is being printed out.
After failing with fflush() and setbuf(), I tried the following approach
void BufferFlusher()
{
int in=0;... (9 Replies)
Well, I was originally going to post this snippet in the original thread titled "how to output ones endlessly like /dev/zero", but that topic was closed without an efficient answer.
It was difficult to find (build) a satisfactory answer to this one, so I thought I'd share it here and as a "fill... (1 Reply)
I want to use the "--totals" option in GNU tar for some reporting, however I have discovered that it writes the output to stderr not stdout and I would like to know why. This is running from BASH.
mkdir /tmp/test
touch /tmp/test/foo.file
cd /tmp/
tar --totals -clpzf test.tar.gz test 2>... (2 Replies)
Hello,
I am currently interning at a place and my job is to essentially learn UNIX. My supervisor gives me problems here and there to help guide me with my learning but for the most part I'm doing this all by self-teaching myself. Needless to say I have run into a few obstacles...for... (12 Replies)
I have searched the forum and seems like I
just don't quite find my question.
I have a script that runs out of cron and I
am trying to send normal successful stdout
to /dev/null, but if there is an error, I
want both stdout/stderr to go to mail.
In other words, I only want to know... (2 Replies)
Hi All,
I started to copy a large file from /dataload file system to /backup file system.
I need to know the copy speed and status.
How it can be viewed.
Please help me.
Thanks in Advance. (2 Replies)
Hi friends,
I tried to take a backup of my PC using tar command. But it ended with an error
tar: /home/backup/back.tar.gz: Cannot write: No space left on device
tar: Error is not recoverable: exiting now
But i checked the disk space and there is enough space is available.
]# df
Filesystem... (11 Replies)
Congratulations to RudiC for crossing the magic boundary of being thanked 3000 times! As someone who often has profited greatly from your insight i stand in awe before this achievement.
Thank you for your ongoing dedication and thank you for your willingness to share your knowledge!
bakunin
... (15 Replies)
I know that
mmmmm 2> error.txt
will send the error message to the specified file instead of the screen. However, I have seen
>&2
in some scripts, and I can't get it to do anything. A source said it sends stdout and stderr to a file. What file?
Ubuntu 18.04.2; Xfce 4.12.3;... (11 Replies)