HP3000-L Archives

March 1998, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Thu, 5 Mar 1998 14:54:09 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (215 lines)
Patrick Santucci writes:
>
> Chris Bartram wrote:
>
> > pkzip (ported by Neil Harvey & Associates) is available in the freeware
> > software section of www.3k.com.
>
> Chris, thanks. (Thanks too, to Glenn Cole who also pointed me to Neil
> Harvey's port of zip and unzip.) But unless I'm missing something, this
> looks like it runs in the POSIX shell, not native MPE. Please tell me
> I'm wrong, but it seems I'd have to get either gzip or lzw, get that
> running in POSIX, then upload zip/unzip to my 3000 and use [gzip or lzw
> [and tar?]] to put them in their proper format, and all this in POSIX --
> no offense, but I was really looking for an MPE solution, you know,

You're wrong.  ;-)

You can download, install, and execute zip/unzip all without touching the
POSIX shell.

The following was done on my 5.5 machine:

MPE/iX:hello mark,manager.sys
ENTER ACCOUNT (SYS) PASSWORD:

HP3000  Release: C.55.00   User Version: C.55.00   THU, MAR  5, 1998,  2:23 PM
MPE/iX  HP31900 C.05.08  Copyright Hewlett-Packard 1987.  All rights reserved.

Download the stuff from 3k...

:run ftp.arpa.sys

File Transfer Protocol [A0008NZ1] (C) Hewlett-Packard Co. 1990
ftp> open ftp.3k.com
220 tasha FTP server (Version wu-2.4(1) Tue Dec 5 20:51:15 CST 1995) ready.
Connected to ftp.3k.com (198.151.172.50).  (FTPINFO 40)
Name(manager): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password: [log in to unmask]
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
ftp> byte
200 Type set to L (byte size 8).
ftp> get /PROGS/unzip.tar.Z /tmp/unzip.tar.Z
200 PORT command successful.
150 Opening BINARY mode data connection for /PROGS/unzip.tar.Z (469373 bytes).
226 Transfer complete.
469373 bytes received in 31.81 seconds (14.41 Kbytes/sec)
ftp> get /PROGS/zip.tar.Z /tmp/zip.tar.Z
200 PORT command successful.
150 Opening BINARY mode data connection for /PROGS/zip.tar.Z (587266 bytes).
226 Transfer complete.
587266 bytes received in 56.30 seconds (10.19 Kbytes/sec)
ftp> quit
221 Goodbye.

END OF PROGRAM

Extract the files from the tar archives...

:run tar.hpbin.sys;info="xvfopz /tmp/unzip.tar.Z"

x /usr/local/bin/unzip, 256768 bytes, 502 tape blocks
x /usr/local/bin/funzip, 142336 bytes, 278 tape blocks
x /usr/local/bin/unzipsfx, 205824 bytes, 402 tape blocks
x /usr/local/bin/zipinfo symbolic link to /usr/local/bin/unzip
x /usr/local/bin/zipgrep, 1203 bytes, 3 tape blocks
x /SYS/HPBIN/UNZIP symbolic link to /usr/local/bin/unzip
x /SYS/HPBIN/FUNZIP symbolic link to /usr/local/bin/funzip
x /SYS/HPBIN/UNZIPSFX symbolic link to /usr/local/bin/unzipsfx
x /SYS/HPBIN/ZIPINFO symbolic link to /usr/local/bin/unzip
x /SYS/HPBIN/ZIPGREP symbolic link to /usr/local/bin/zipgrep
x /usr/local/man/man1/funzip.1, 4645 bytes, 10 tape blocks
x /usr/local/man/man1/unzip.1, 37438 bytes, 74 tape blocks
x /usr/local/man/man1/unzipsfx.1, 13115 bytes, 26 tape blocks
x /usr/local/man/man1/zipgrep.1, 957 bytes, 2 tape blocks
x /usr/local/man/man1/zipinfo.1, 22008 bytes, 43 tape blocks
x /usr/local/doc/unzip/BUGS, 4668 bytes, 10 tape blocks
x /usr/local/doc/unzip/COPYING, 10378 bytes, 21 tape blocks
x /usr/local/doc/unzip/Contents, 4401 bytes, 9 tape blocks
x /usr/local/doc/unzip/History.530, 22847 bytes, 45 tape blocks
x /usr/local/doc/unzip/History.531, 4391 bytes, 9 tape blocks
x /usr/local/doc/unzip/INSTALL, 25365 bytes, 50 tape blocks
x /usr/local/doc/unzip/README, 8947 bytes, 18 tape blocks
x /usr/local/doc/unzip/README.CR, 3886 bytes, 8 tape blocks
x /usr/local/doc/unzip/ToDo, 3788 bytes, 8 tape blocks
x /usr/local/doc/unzip/Where, 14735 bytes, 29 tape blocks
x /usr/local/doc/unzip/funzip.doc, 3914 bytes, 8 tape blocks
x /usr/local/doc/unzip/test.zip, 4281 bytes, 9 tape blocks
x /usr/local/doc/unzip/unzip.doc, 44803 bytes, 88 tape blocks
x /usr/local/doc/unzip/unzipsfx.doc, 13657 bytes, 27 tape blocks
x /usr/local/doc/unzip/zipgrep.doc, 3550 bytes, 7 tape blocks
x /usr/local/doc/unzip/zipinfo.doc, 23897 bytes, 47 tape blocks

END OF PROGRAM
:run tar.hpbin.sys;info="xvfopz /tmp/zip.tar.Z"

x /usr/local/bin/zip, 271360 bytes, 530 tape blocks
x /usr/local/bin/zipnote, 204800 bytes, 400 tape blocks
x /usr/local/bin/zipsplit, 209664 bytes, 410 tape blocks
x /usr/local/bin/zipcloak, 219136 bytes, 428 tape blocks
x /usr/local/bin/zipgrep, 1203 bytes, 3 tape blocks
x /SYS/HPBIN/ZIP symbolic link to /usr/local/bin/zip
x /SYS/HPBIN/ZIPNOTE symbolic link to /usr/local/bin/zipnote
x /SYS/HPBIN/ZIPSPLIT symbolic link to /usr/local/bin/zipsplit
x /SYS/HPBIN/ZIPCLOAK symbolic link to /usr/local/bin/zipcloak
TAR.HPBIN.SYS: /SYS/HPBIN/ZIPGREP symbolic link to /usr/local/bin/zipgrep: File
exists
x /usr/local/man/man1/zip.1, 26543 bytes, 52 tape blocks
x /usr/local/man/man1/zipgrep.1, 957 bytes, 2 tape blocks
x /usr/local/doc/zip/README, 6760 bytes, 14 tape blocks
x /usr/local/doc/zip/README.CR, 3886 bytes, 8 tape blocks
x /usr/local/doc/zip/TODO, 2612 bytes, 6 tape blocks
x /usr/local/doc/zip/Where, 14735 bytes, 29 tape blocks
x /usr/local/doc/zip/algorith.doc, 3395 bytes, 7 tape blocks
x /usr/local/doc/zip/history, 30154 bytes, 59 tape blocks
x /usr/local/doc/zip/infozip.who, 12920 bytes, 26 tape blocks
x /usr/local/doc/zip/install.doc, 5889 bytes, 12 tape blocks
x /usr/local/doc/zip/zip.doc, 32815 bytes, 65 tape blocks

END OF PROGRAM

> something like ':RUN ZIP.UTIL.SYS;INFO="<FILESET>,<ARCHIVE>"'

Close.  It's INFO="-options archive file1 file2 file3 ...".

Create an archive called /tmp/alldocs.zip:

:run /usr/local/bin/zip;info="-r /tmp/alldocs.zip /usr/local/doc"

  adding: usr/local/doc/ (stored 0%)
  adding: usr/local/doc/unzip/ (stored 0%)
  adding: usr/local/doc/unzip/BUGS (deflated 47%)
  adding: usr/local/doc/unzip/COPYING (deflated 61%)
  adding: usr/local/doc/unzip/Contents (deflated 62%)
  adding: usr/local/doc/unzip/History.530 (deflated 61%)
  adding: usr/local/doc/unzip/History.531 (deflated 53%)
  adding: usr/local/doc/unzip/INSTALL (deflated 60%)
  adding: usr/local/doc/unzip/README (deflated 54%)
  adding: usr/local/doc/unzip/README.CR (deflated 51%)
  adding: usr/local/doc/unzip/ToDo (deflated 49%)
  adding: usr/local/doc/unzip/Where (deflated 66%)
  adding: usr/local/doc/unzip/funzip.doc (deflated 59%)
  adding: usr/local/doc/unzip/test.zip (stored 0%)
  adding: usr/local/doc/unzip/unzip.doc (deflated 66%)
  adding: usr/local/doc/unzip/unzipsfx.doc (deflated 63%)
  adding: usr/local/doc/unzip/zipgrep.doc (deflated 62%)
  adding: usr/local/doc/unzip/zipinfo.doc (deflated 65%)
  adding: usr/local/doc/zip/ (stored 0%)
  adding: usr/local/doc/zip/README (deflated 55%)
  adding: usr/local/doc/zip/README.CR (deflated 51%)
  adding: usr/local/doc/zip/TODO (deflated 47%)
  adding: usr/local/doc/zip/Where (deflated 66%)
  adding: usr/local/doc/zip/algorith.doc (deflated 52%)
  adding: usr/local/doc/zip/history (deflated 62%)
  adding: usr/local/doc/zip/infozip.who (deflated 57%)
  adding: usr/local/doc/zip/install.doc (deflated 58%)
  adding: usr/local/doc/zip/zip.doc (deflated 67%)

END OF PROGRAM

List the contents of the archive /tmp/alldocs.zip:

:run /usr/local/bin/unzip;info="-l /tmp/alldocs.zip"

Archive:  /tmp/alldocs.zip
 Length    Date    Time    Name
 ------    ----    ----    ----
      0  03-05-98  14:30   usr/local/doc/
      0  09-13-97  03:28   usr/local/doc/unzip/
   4668  09-13-97  02:17   usr/local/doc/unzip/BUGS
  10378  09-13-97  02:17   usr/local/doc/unzip/COPYING
   4401  09-13-97  02:17   usr/local/doc/unzip/Contents
  22847  09-13-97  02:17   usr/local/doc/unzip/History.530
   4391  09-13-97  02:17   usr/local/doc/unzip/History.531
  25365  09-13-97  02:17   usr/local/doc/unzip/INSTALL
   8947  09-13-97  02:17   usr/local/doc/unzip/README
   3886  09-13-97  02:17   usr/local/doc/unzip/README.CR
   3788  09-13-97  02:17   usr/local/doc/unzip/ToDo
  14735  09-13-97  02:17   usr/local/doc/unzip/Where
   3914  09-13-97  02:17   usr/local/doc/unzip/funzip.doc
   4281  09-13-97  03:28   usr/local/doc/unzip/test.zip
  44803  09-13-97  02:17   usr/local/doc/unzip/unzip.doc
  13657  09-13-97  02:17   usr/local/doc/unzip/unzipsfx.doc
   3550  09-13-97  02:17   usr/local/doc/unzip/zipgrep.doc
  23897  09-13-97  02:17   usr/local/doc/unzip/zipinfo.doc
      0  09-13-97  02:24   usr/local/doc/zip/
   6760  09-13-97  02:24   usr/local/doc/zip/README
   3886  09-13-97  02:24   usr/local/doc/zip/README.CR
   2612  09-13-97  02:24   usr/local/doc/zip/TODO
  14735  09-13-97  02:24   usr/local/doc/zip/Where
   3395  09-13-97  02:24   usr/local/doc/zip/algorith.doc
  30154  09-13-97  02:24   usr/local/doc/zip/history
  12920  09-13-97  02:24   usr/local/doc/zip/infozip.who
   5889  09-13-97  02:24   usr/local/doc/zip/install.doc
  32815  09-13-97  02:24   usr/local/doc/zip/zip.doc
 ------                    -------
 310674                    28 files

END OF PROGRAM
:

> Patrick, who isn't sure but suspects this is all easier than he thinks.

You're right on this one.  :-)

But just remember that MPE zip/unzip DOES NOT preserve MPE file attributes
like filecode.  Also, it will create bytestream files when unzipping.
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2