Operating System - HP-UX
1826957 Members
4347 Online
109705 Solutions
New Discussion

Re: tape (reel to reel) dump

 
SOLVED
Go to solution
Carol Balla
Advisor

Re: tape (reel to reel) dump

Harry - Your the best..... Your last message did the trick.

I want to thank everyone for their input. I greatly appreciate it.
Carol
Lou Zirko_1
Frequent Advisor

Re: tape (reel to reel) dump

Why not just pipe the results of the dd through the pr command like:

dd if= bs=860 | pr -86 > outfile

Lou Zirko
Lou Zirko_1
Frequent Advisor

Re: tape (reel to reel) dump

Ignore my previous post. Thought it would work on a stream but jsut tried it and it did not work.

Sorry

Lou Zirko
Carol Balla
Advisor

Re: tape (reel to reel) dump

Lou:
Tried and message was:
pr: width to small
Frank Slootweg
Honored Contributor

Re: tape (reel to reel) dump

I am glad that the problem is solved.

Just some loose ends:

I think we can, once more, conclude that correctly attaching binary files is tricky. For example the 14:13 PM GMT attachment was 870 bytes, not 860, and had 6 extra bytes at the beginning and 4 at the end.

Clay, I think you could use the standard XPG/POSIX command fold(1) instead of your fpad program.

A. Clay Stephenson
Acclaimed Contributor

Re: tape (reel to reel) dump

Yes, I could have used fold in this case but it was not clear what kind of termination was needed; I wanted something that could do LF's, CR's, CRLF's, or LFCR's just by changing the argument.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: tape (reel to reel) dump

WOW. That was the hardest ten points I ever earned! I actually created the file using vi and tried the "dd" until I got the right combo! I agree that getting the proper attachment is necessary, but also tricky.

Carol, have fun with that very interesting data :-))
Live Free or Die
Frank Slootweg
Honored Contributor

Re: tape (reel to reel) dump

Yes, they were very hard points (I got 7)! :-)

In hindsight, I can hit myself that I did not see the relation between the stair-case of 6 characters (see 12:10 PM GMT attachment), the assumed logical record length of 86 characters and the default 80 character width of most 'terminals'.

Obviously the display was wrapping at 80 characters, causing the 6-character stair-case. So apparently the data did not contain any linefeeds, hence they had to be inserted after each 86 characters. Elementary, dear Watson! :-)
Carol Balla
Advisor

Re: tape (reel to reel) dump

Elementary, dear Watson! :-)
Thats what I was thinking when I got the request to dump this tape. Nothing to it!

Again, thanks!
Carol
Carlos Fernandez Riera
Honored Contributor

Re: tape (reel to reel) dump

All we are very happy too... and we will be more if you awards point to every body that have wrote you.

As jr. said, a hard work.
unsupported