summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-25 07:45:20 +0000
committerJim Meyering <jim@meyering.net>2003-07-25 07:45:20 +0000
commit7fd35644894fe721ae5396d0e3dea09f2ebf04ff (patch)
treeaefbd53505f79cbd4a2d8e69b2f577d736955b7f /src/dd.c
parentafbd32c040538f83af18579da5a887e8b3f95257 (diff)
downloadcoreutils-7fd35644894fe721ae5396d0e3dea09f2ebf04ff.tar.xz
(usage): Document the fact that SIGUSR1 makes dd
output its current record counts. Reported by Jurriaan.
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dd.c b/src/dd.c
index 997759201..187764ca9 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -327,6 +327,17 @@ Each KEYWORD may be:\n\
sync pad every input block with NULs to ibs-size; when used\n\
with block or unblock, pad with spaces rather than NULs\n\
"), stdout);
+ fputs (_("\
+\n\
+Note that sending a SIGUSR1 signal to a running `dd' process makes it\n\
+print to standard error the number of records read and written so far,\n\
+then to resume copying.\n\
+\n\
+ $ dd if=/dev/zero of=/dev/null& pid=$!\n\
+ $ kill -USR1 $pid; sleep 1; kill $pid\n\
+ 10899206+0 records in\n\
+ 10899206+0 records out\n\
+"), stdout);
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
}
exit (status);