3 ms·
There is a signal, SIGINFO. For example, see BSD's `cp(1)' If cp receives a SIGINFO (see the status argument for stty(1)) sig- nal, the current inpu
by jxy 10y ago
There is a signal, SIGINFO. For example, see BSD's `cp(1)'
If cp receives a SIGINFO (see the status argument for stty(1)) sig-
nal, the current input and output file and the percentage complete
will be written to the standard output.
- marvy 10y agoThat is seriously neat. But! The user has to know this. Surely, if you're trying to copy a 6GB file, it's better to take a lesson from wget and print a progress indicator than force the user to (1) read the man page, and (2) keep polling the program to ask how it's doing.