Article View: comp.sys.mac
Article #30755Re: BinHex 4.0 Usage
From: Josh Hodas
Date: Sat, 30 Jul 1988 13:41
Date: Sat, 30 Jul 1988 13:41
100 lines
3658 bytes
3658 bytes
In article <113@pai.UUCP> erc@pai.UUCP (Eric Johnson) writes:
>In article <430037@hpcea.CE.HP.COM>, twakeman@hpcea.CE.HP.COM (Teriann Wakeman) writes:
>> While we are on the subject.... i have yet to figgure out how to reassemble
>> multiple part postings. I can download single postings and unhex them OK.
>> The methods that I use are:
[Questions about best way to download and recombine multi-part postings]
>> Networld <-> HP 300 series UNIX box <-> serial line (X.25) <-> MAC
>> VersatermHP emulating
>> HP2621 terminal
>> I would appriciate instructions on 'how to put it all together'.
>> TeriAnn
>> (415)857-5057
>
>Here is how I do it from:
>
>Networld <-> HP 320 (HP-UX) <-> serial line (modem dial-in) <-> MAC
> Kermit
>
>I read netnews with vnews (version B 2.11 12/1/87), and can use
>s to save the current message with the header, or w to save without
>the header. In either case, the binHEX info always seems to have extra
>junk that needs to be removed, e.g., "-- end of part 3 --" at the end
>and a "cut here" at the beginning. What I do is save each part to its own
>file, e.g., xlisp1.hex, xlisp2.hex. etc.
>
[a somewhat invloved vi method for recombining]
>
>I am sure someone has developed a Unix program to automate this
>process, but I haven't found one yet. (It gets difficult since most
>postings begin the first part with an explanation of what the program
>does -- and this section is of an indeterminant length.)
>
[Details of using kermit to download, then binhex]
>
>I hope this isn't too basic (please don't be offended).
>
>Have fun,
>Eric
>
>--
>Eric F. Johnson | Phone +1 612-894-0313 | Are we
>Prime Automation,Inc | UUCP: bungia!pai!erc | having
>12201 Wood Lake Drive | UUCP: sun!tundra!pai!erc | fun
>Burnsville, MN 55337 USA | BIX: erc | yet?
Well, I've ssen several requests of this sort in the last few months.
Some time ago the following shell script was posted (I assume by Oliver
Steele the attributed author, but I don't remember). It does a wonderful
job of stripping out headers, and junk. To use it, set it's mode to
excecutable (ie: chmod 700 cmb) then, if youo have xlisp1, xlisp2,
xlisp3, xlisp4, type
cmb xlisp? > xlisp.hqx
and its done.
Hope this helps. It has worked flawlessly for me for 6-7 months.
Josh Hodas
------------------------
#! /bin/csh -f
# File: cmb
# Author: Oliver Steele
# Date: 15 Oct 87
# Purpose: combine multiple BinHex files
# Usage: cmb foo.? > foo.hqx
set script = /tmp/comb$$
onintr exit
cat > $script << EOF
BEGIN {FS = "\0";}
length == 64
/^\(This file must/
/:\$/
EOF
awk -f $script $*
exit:
rm -f $script
-------------------------
Josh Hodas (hodas@eniac.seas.upenn.edu)
4223 Pine Street
Philadelphia, PA 19104
(215) 222-7112 (home)
(215) 898-9515 (school office)
Technical Details
Message-ID:
<5700@super.upenn.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!netnews.upenn.edu!super.upenn.edu!eniac.seas.upenn.edu!hodasReferences:
<2102@ssc-vax.UUCP> <430037@hpcea.CE.HP.COM> <113@pai.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!netnews.upenn.edu!super.upenn.edu!eniac.seas.upenn.edu!hodas From: hodas@eniac.seas.upenn.edu (Josh Hodas) Newsgroups: comp.sys.mac Subject: Re: BinHex 4.0 Usage Message-ID: <5700@super.upenn.edu> Date: 30 Jul 88 13:41:31 GMT References: <2102@ssc-vax.UUCP> <430037@hpcea.CE.HP.COM> <113@pai.UUCP> Sender: news@super.upenn.edu Reply-To: hodas@eniac.seas.upenn.edu.UUCP (Josh Hodas) Organization: University of Pennsylvania Lines: 100