I just did a quick test from the CI. First off, I have a logon UDC that
establishes .HPBIN.SYS in the execution path.
global
setvar TZ,"CST6CDT"
setvar HPPATH,"!!HPGROUP,PUB,PUB.SYS,ARPA.SYS,HPBIN.SYS"
Next, I ran tar from the CI by simply invoking tar with all the required
parameters in quotes:
tar "-cvf /dev/tp7 /DENYS"
This command stored my account to Ldev 7.
I created the entry in /dev for the drive as follows:
Mknod /dev/tp7 c 0 7 (where 7 is the ldev of the tape)
Lastly, I changed the mode of both /dev/tp7 and /dev:
Chmod 666 /dev/tp7
Chmod 555 /dev
That's all.
Kind regards,
Denys. . .
Denys Beauchemin
HICOMP
(800) 323-8863 (281) 288-7438 Fax: (281) 355-6879
denys at hicomp.com www.hicomp.com
-----Original Message-----
From: Gordon Montgomery [SMTP:[log in to unmask]]
Sent: Monday, February 07, 2000 6:19 PM
To: [log in to unmask]
Subject: Re: TAR AND THE POSIX SHELL
In article <[log in to unmask]>,
"Koren, Noam" <[log in to unmask]> wrote:
>I used to use tar to extract files ftp'd from unix and vice-versa.
>BTW - tar can be run from the MPE prompt - :TAR.HPBIN.SYS tvf .....
>
Ok, I guess I'm just really slow..
I can't get get TAR to run from the CI prompt. At least not using the same
syntax. It keeps complaining about missing commas or semicolons.
I can't figure out how to specify the tape drive.
I also tried from the shell, and I discovered that I have to be logged
on as MANAGER?? How do I enable this for the normal accounts
that we use? When I tried, first it complained that /dev/dat8 was
permission denied, then after a chmod 777 /dev/dat8, it complained that
the tape was write protected even though it wasn't. I then had to
abortio the tape drive several times to get the session back. I'll
be the first to admit that I don't know anything about POSIX on
the HP, but it shouldn't be this difficult should it?
Anyway, thanks for any help you might give.
Gordon Montgomery
Living Scriptures, Inc
[log in to unmask] (anti spam - replace lsi with livingscriptures)
(801) 627-2000
|