View Single Post
Old 03-29-2012, 08:29 AM   #22
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
Check if the copy of dd you are using supports the seek= and skip= options.

Those would give you access to the last (or other selected) line.
skip= for skipping the un-wanted lines on a fb read.
seek= to seek past the un-changed lines on a fb write.
Huh?

If you look at almost any script I have published that uses the framebuffer, I have been using dd skip and seek parameters, so apparently they *do* work. You can check if they are supported by typing "dd" with no parameters, to see usage. I have never yet seen any dd anywhere (even limited busybox versions) without both of those parameters. They are the main critical parameters (along with bs, count, if, and of) that distinguish "dd" from "cat".

And if what I said was that unclear, let me restate it: "dd" works great, but binary files copied with "cat" do not make good copies in all cases. I was just warning people to use dd instead. The busybox version of "cat" in some kindles may have a bug that makes it process embedded special characters even when its output is redirected. It seems that any time I try to reduce my text output word count, I get these confusing replies.

Last edited by geekmaster; 04-03-2012 at 11:40 AM.
geekmaster is offline   Reply With Quote