Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Let the machine do the dirty work. -- "Elements of Programming Style", Kernighan and Ritchie


computers / alt.sys.pdp10 / Re: Command line arguments?

SubjectAuthor
* Command line arguments?Sid Maxwell
+* Re: Command line arguments?Scott Lurndal
|`* Re: Command line arguments?Phil Budne
| `* Re: Command line arguments?gah4
|  `* Re: Command line arguments?Lars Brinkhoff
|   +- Re: Command line arguments?gah4
|   `- Re: Command line arguments?Johnny Billquist
`* Re: Command line arguments?Rich Alderson
 `* Re: Command line arguments?fishtoprecords
  +- Re: Command line arguments?gah4
  `* Re: Command line arguments?Johnny Billquist
   +- Re: Command line arguments?Sid Maxwell
   +* Re: Command line arguments?Scott Lurndal
   |`* Re: Command line arguments?Johnny Billquist
   | `* Re: Command line arguments?gah4
   |  +* Re: Command line arguments?Scott Lurndal
   |  |`- Re: Command line arguments?Rich Alderson
   |  `- Re: Command line arguments?Rich Alderson
   `* Re: Command line arguments?Rich Alderson
    `* Re: Command line arguments?gah4
     +- Re: Command line arguments?Johnny Billquist
     `* Re: Command line arguments?Scott Lurndal
      `* Re: Command line arguments?gah4
       `* Re: Command line arguments?Johnny Billquist
        `* Re: Command line arguments?gah4
         +- Re: Command line arguments?Johnny Billquist
         `* Re: Command line arguments?Andy Valencia
          +- Re: Command line arguments?Johnny Billquist
          `* Re: Command line arguments?Andy Valencia
           `- Re: Command line arguments?Johnny Billquist

Pages:12
Re: Command line arguments?

<ubv4ch$hud$1@news.misty.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=993&group=alt.sys.pdp10#993

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp10
Subject: Re: Command line arguments?
Date: Mon, 21 Aug 2023 09:40:00 +0200
Organization: MGT Consulting
Message-ID: <ubv4ch$hud$1@news.misty.com>
References: <52d370b3-c1b7-42af-b8a4-48724a481689n@googlegroups.com>
<mddleefdhn0.fsf@panix5.panix.com>
<2b2b7d7e-2d34-4594-a266-c121d48234a0n@googlegroups.com>
<ubd1al$g3l$1@news.misty.com> <mddcyzoyqpz.fsf@panix5.panix.com>
<ecc8ab1d-79a5-46b1-b045-0675b7892e55n@googlegroups.com>
<SN4DM.141795$ftCb.126562@fx34.iad>
<449ede1a-3def-46ac-81a3-b9df8c32d5b5n@googlegroups.com>
<ubt99l$a18$1@news.misty.com>
<cbdb0788-bc2a-40df-ad57-c64e1f2b09f1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 21 Aug 2023 07:40:01 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="18381"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
In-Reply-To: <cbdb0788-bc2a-40df-ad57-c64e1f2b09f1n@googlegroups.com>
 by: Johnny Billquist - Mon, 21 Aug 2023 07:40 UTC

On 2023-08-20 23:29, gah4 wrote:
> On Sunday, August 20, 2023 at 7:51:35 AM UTC-7, Johnny Billquist wrote:
>> On 2023-08-17 06:45, gah4 wrote:
>
> (snip)
>>> My favorite early VMS oops, is that you could rename a directory into itself.
>>>
>>> I think that was:
>>>
>>> REN X.DIR [-.X]
>>>
>>> The files go away, but quota isn't reduced, and I think the blocks are still in use.
>
>> Yeah. That would end up as a lost file (the directory), and then all
>> files beneath that would also be lost.
>> It can be recovered, but that requires running the disk checking tools.
>> Similar to fsck.
>
>> Same thing can happen/be done in RSX as well.
>
> I think it doesn't work anymore in VMS, but it did in early versions.

Yeah. I'm pretty sure they "fixed" that. However, there are more ways of
getting lost files. In VMS, as well as RSX, you can access files by file
id, and not only by path. That also means, you can even create files
that don't exist in any directory. That is a lost file already.
If you know the file id, you can still access the file. Also, you can
create and remove directory entries totally independent of the file,
unlike in Unix where everything is by pathname, and the inode number is
purely usable inside the kernel, and it's all reference counted.

> Pretty often in unix, I do:
>
> mkdir newdir
> mv * newdir
>
> to move all the files except newdir, and it works fine, though with a message.

I've done that a few times as well. :-)

> As well as I know, the blocks were recovered with disk tools, but they
> didn't give me the files back.

They should. In RSX, the tool is called VFY, and lost files are entered
into [1,3]. VMS should be doing the same. [1,3] is sortof the equivalent
of lost+found under Unix.

Johnny

Re: Command line arguments?

<169292079817.17442.7903874736530557746@media.vsta.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=997&group=alt.sys.pdp10#997

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vandys@vsta.org (Andy Valencia)
Newsgroups: alt.sys.pdp10
Subject: Re: Command line arguments?
Date: Thu, 24 Aug 2023 16:46:38 -0700
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <169292079817.17442.7903874736530557746@media.vsta.org>
References: <ecc8ab1d-79a5-46b1-b045-0675b7892e55n@googlegroups.com> <SN4DM.141795$ftCb.126562@fx34.iad> <449ede1a-3def-46ac-81a3-b9df8c32d5b5n@googlegroups.com> <ubt99l$a18$1@news.misty.com> <cbdb0788-bc2a-40df-ad57-c64e1f2b09f1n@googlegroups.com>
Injection-Info: dont-email.me; posting-host="ef455fdfae0b57e05ee82df74811fb90";
logging-data="3875214"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18z0DFYmKQIqznzCfyD/JGZ"
User-Agent: rn.py v0.0.1
Cancel-Lock: sha1:4QsW9oYfvofDCTA3eOM28RGKsZU=
 by: Andy Valencia - Thu, 24 Aug 2023 23:46 UTC

Johnny Billquist <bqt@softjar.se> writes:
> ... In VMS, as well as RSX, you can access files by file
> id, and not only by path.

How is this done? I'd like to try it out. Thanks!

Andy Valencia
Home page: https://www.vsta.org/andy/
To contact me: https://www.vsta.org/contact/andy.html

Re: Command line arguments?

<uc9sta$lhn$1@news.misty.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=998&group=alt.sys.pdp10#998

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp10
Subject: Re: Command line arguments?
Date: Fri, 25 Aug 2023 11:39:54 +0200
Organization: MGT Consulting
Message-ID: <uc9sta$lhn$1@news.misty.com>
References: <ecc8ab1d-79a5-46b1-b045-0675b7892e55n@googlegroups.com>
<SN4DM.141795$ftCb.126562@fx34.iad>
<449ede1a-3def-46ac-81a3-b9df8c32d5b5n@googlegroups.com>
<ubt99l$a18$1@news.misty.com>
<cbdb0788-bc2a-40df-ad57-c64e1f2b09f1n@googlegroups.com>
<169292079817.17442.7903874736530557746@media.vsta.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 25 Aug 2023 09:39:54 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="22071"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
In-Reply-To: <169292079817.17442.7903874736530557746@media.vsta.org>
 by: Johnny Billquist - Fri, 25 Aug 2023 09:39 UTC

On 2023-08-25 01:46, Andy Valencia wrote:
> Johnny Billquist <bqt@softjar.se> writes:
>> ... In VMS, as well as RSX, you can access files by file
>> id, and not only by path.
>
> How is this done? I'd like to try it out. Thanks!

In RSX you normally access files using FCS or RMS. The library calls to
open a file have a variant where you give just the file ID to the call.
For higher level languages, it depends on what functions have been made
available in that language. (I could write up an example on how to do it
from PDP-11 C and RMS, but with most other languages I would need to
throw in a bit of Macro-11 as well.)

On the command line, it equally depends on if the tools have a way or not.

PIP do. If you want to look at a file purely based on the file ID:

PIP TI:=<device>:/FI:<filenum>:<seqnum>

If you want to see the id of a file:
PIP <filename>/FU

Example:

..pip m.txt/fu

Directory DU0:[BQT]
25-AUG-23 11:34

M.TXT;1 (17460,1436) 1./1. 07-JAN-13 20:14
[7,14] [RWED,RWED,RWED,R]

Total of 1./1. blocks in 1. file

..pip ti:=m.txt
rmd, build rth devices,
..pip ti:=/fi:17460:1436
rmd, build rth devices,

Of course you can do anything with the file id in PIP. Delete the file,
copy the file, create another directory entry for the file, and so on.
Note that if you delete a file this way, the directory entry will still
hang around, but will no longer point to an existing file.
And if you remove the directory entry for a file without deleting it,
you will have a "lost" file. You can still access if through the file
id, though. And VFY can find such files and enter them into [1,3].

Exactly how you go about in VMS, is a little more unknown to me. You can
obviously use RMS to access the file, but high level languages, as well
as command line I know less.

Re: Command line arguments?

<169307356106.4721.18034487122196031772@media.vsta.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=999&group=alt.sys.pdp10#999

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vandys@vsta.org (Andy Valencia)
Newsgroups: alt.sys.pdp10
Subject: Re: Command line arguments?
Date: Sat, 26 Aug 2023 11:12:41 -0700
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <169307356106.4721.18034487122196031772@media.vsta.org>
References: <uc9sta$lhn$1@news.misty.com> <ecc8ab1d-79a5-46b1-b045-0675b7892e55n@googlegroups.com> <SN4DM.141795$ftCb.126562@fx34.iad> <449ede1a-3def-46ac-81a3-b9df8c32d5b5n@googlegroups.com> <ubt99l$a18$1@news.misty.com> <cbdb0788-bc2a-40df-ad57-c64e1f2b09f1n@googlegroups.com> <169292079817.17442.7903874736530557746@media.vsta.org>
Injection-Info: dont-email.me; posting-host="1ad3665b4617e39a91ff101a1e7d9f1d";
logging-data="758317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Wnm8DVFrrZcw3Wepu5yF+"
User-Agent: rn.py v0.0.1
Cancel-Lock: sha1:Vi/uBIEXg/Nmv1P8jmGm1DRUJfk=
 by: Andy Valencia - Sat, 26 Aug 2023 18:12 UTC

Johnny Billquist <bqt@softjar.se> writes:
> >> ... In VMS, as well as RSX, you can access files by file
> >> id, and not only by path.
> > How is this done? I'd like to try it out. Thanks!
> In RSX you normally access files using FCS or RMS. The library calls to
> open a file have a variant where you give just the file ID to the call.
> ...

Thank you!

Andy Valencia
Home page: https://www.vsta.org/andy/
To contact me: https://www.vsta.org/contact/andy.html

Re: Command line arguments?

<ucflg0$mo4$1@news.misty.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1000&group=alt.sys.pdp10#1000

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp10
Subject: Re: Command line arguments?
Date: Sun, 27 Aug 2023 16:10:07 +0200
Organization: MGT Consulting
Message-ID: <ucflg0$mo4$1@news.misty.com>
References: <uc9sta$lhn$1@news.misty.com>
<ecc8ab1d-79a5-46b1-b045-0675b7892e55n@googlegroups.com>
<SN4DM.141795$ftCb.126562@fx34.iad>
<449ede1a-3def-46ac-81a3-b9df8c32d5b5n@googlegroups.com>
<ubt99l$a18$1@news.misty.com>
<cbdb0788-bc2a-40df-ad57-c64e1f2b09f1n@googlegroups.com>
<169292079817.17442.7903874736530557746@media.vsta.org>
<169307356106.4721.18034487122196031772@media.vsta.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 27 Aug 2023 14:10:08 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="23300"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
In-Reply-To: <169307356106.4721.18034487122196031772@media.vsta.org>
 by: Johnny Billquist - Sun, 27 Aug 2023 14:10 UTC

On 2023-08-26 20:12, Andy Valencia wrote:
> Johnny Billquist <bqt@softjar.se> writes:
>>>> ... In VMS, as well as RSX, you can access files by file
>>>> id, and not only by path.
>>> How is this done? I'd like to try it out. Thanks!
>> In RSX you normally access files using FCS or RMS. The library calls to
>> open a file have a variant where you give just the file ID to the call.
>> ...
>
> Thank you!

By the way. The FCS and RMS libraries are actually the ones doing the
lookups on filenames giving a file id as well. The actual I/O request to
open a file is always using the file id. So the whole filename to id
lookup/translation happens in userspace in your program. Including also
the multiple directory traversion.

Johnny

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor