ISC UNIX 2.2 & tape drive
Martin Weitzel
martin at mwtech.UUCP
Wed Jul 25 01:36:52 AEST 1990
In article <1990Jul23.011636.14224 at virtech.uucp> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
[some lines deleted]
>
>Experiments with tape drives and console output have shown that if you have
>scrolling output on your console it will cause the tape drive output to
>pause momentarily and restart. This has a very bad effect on the throughtput
>of your tape output, so you should not use any of the aformentioned commands
>with the verbose flag set (unless you redirect the verbosity into a file).
Very true.
If scrolling of the console screen is the problem, here is some
workaround% which would keep the tape streaming.
# ---------------------------------------------------------------
some backup-program in verbose mode |
awk '
BEGIN {
CSI = sprintf("%c[", 27)
HOME = CSI "H"
CTEOS= CSI "J"
}
NR % (lines - 3) == 1 {
printf(HOME "Backup in progress ..." CTEOS);
}
{
printf("\n%-5d: %s", NR, $1);
}
END {
printf("\n... DONE (%d files)\n", lines);
}
' lines="${LINES:-25}" -
# ---------------------------------------------------------------
%: Yes, yes I know all what you want to comment on it and I promise
I'll write it in C and with curses and make it more portable ...
some day 1/2:-)
--
Martin Weitzel, email: martin at mwtech.UUCP, voice: 49-(0)6151-6 56 83
More information about the Comp.unix.i386
mailing list