Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hpcvra!prestonb From: prestonb@hpcvra.CV.HP.COM (Preston Brown) Newsgroups: comp.sys.handhelds Subject: Re: Transfer HP28 -> HP48SX via IR Message-ID: <21580062@hpcvra.CV.HP.COM> Date: 12 Apr 90 16:45:24 GMT References: <312@unlisys.UUCP> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 172 # Okay here it is again. This is the HP program INPRT that allows # the 48SX to read printer output from the 28 or any other product # that prints to the HP IR printer. # # This is a binary program that you must download to run. If you # are downloading it directly form a unix machine you must say: # set file type binary # in the unix kermit before downloading it. # This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by Preston Brown on Wed Mar 14 09:54:17 1990 # # This archive contains: # inprt inprt.txt # LANG=""; export LANG PATH=/bin:/usr/bin:$PATH; export PATH rm -f /tmp/uud$$ (echo "begin 777 /tmp/uud$$\n \nend" | uudecode) >/dev/null 2>&1 if [ -f /tmp/uud$$ ] then rm -f /tmp/uud$$ unpacker=uudecode else echo Compiling unpacker for non-ascii files pwd=`pwd`; cd /tmp cat >unpack$$.c <<-'EOF' #include #define DEC(c) (((c) - ' ') & 077) main() { int n; char dest[128], a,b,c,d; scanf("begin %o ", &n); gets(dest); if (freopen(dest, "w", stdout) == NULL) { perror(dest); exit(1); } while ((n=getchar()) != EOF && (n=DEC(n))!=0) { while (n>0) { a = DEC(getchar()); b = DEC(getchar()); c = DEC(getchar()); d = DEC(getchar()); if (n-- > 0) putchar(a << 2 | b >> 4); if (n-- > 0) putchar(b << 4 | c >> 2); if (n-- > 0) putchar(c << 6 | d); } n=getchar(); } exit(0); } EOF cc -o unpack$$ unpack$$.c rm unpack$$.c cd $pwd unpacker=/tmp/unpack$$ fi echo x - inprt '[non-ascii]' $unpacker <<'@eof' begin 666 inprt M2%!(4#0X+4*=+="$&!6*P=P">@6 OWD&^#YA@/3X!FC0.O00 .Y$@Y$O 8E? M$0$(^/B]&Q"1^'E;H"\!+#1@!89?#@'8JF6 'V<6\0L!$/0(B!74^(\;@%\. M 1& ;R94^)MG$,$-J$[@A,U7 T(#6&W8;-A MKV&K8:=AHV&?89MAEV&388]ABV&'88-A?V%[87=A'6$9815A$6$-80EA!6$! M8?U@^6#U8/%@[6#I8.5@X6"/8(M@AV"#8']@>V!W8'-@;V!K8&=@8V!?8%M@ M5V!38--@SV#+8,=@PV"_8+M@MV"S8*^ !@ (*-&B)FI>_%%'2E8(.KUS(( & M5 @,D!,5.X4%2D^_:E[\44=*5A$(V#N'!@4ZS<47=11U%'5D.HX&)P@,$Q)( M8+:/!CHE,/%PBH $]3GQ<'Q0CH &@E," +H3 3$O;WYMJ !]$%W*DK\1H! MP$X344=*5O,3&N0!!S.AH.8$$'6D9"4_L:'FQ1]UI&0% *)3"Z=S2E\ <""_ MC3$B RPJ4! (/?7@X2%AH>(B8J+C(V.M7^PJ[M_?W^RLW]_?W]_?W^ P,+( MRLO.S[1@7JA^V=NCK]W]L,?GT?&AOZ2CI:=FHN+J]/OAZ?/ZX.CR^>3K]OS% M[MC&Y>WXYL3LUMS)[]_4P71E6]UTE.4%)4?2!O;B!T:&4@2% @-#@N(" H24Y04E0@=&5R M;6EN871E71E2X-"@T*("!O("!&;W(@=&AE($A0(#(W4RP@2% @,3="+"!A;F0@ M2% @-#)3.B @5&AE(&-A;&-U;&%T;W(@;75S="!B92!R86ES960@,"XS#0H@ M(" @(&EN8VAE2X-"F%L end @eof chmod 666 inprt.txt rm -f /tmp/unpack$$ exit 0