Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Computer programs expand so as to fill the core available.


computers / comp.os.vms / Re: RECALL command

SubjectAuthor
* RECALL commandChris Townley
+* Re: RECALL commandChris Townley
|`* Re: RECALL commandJim
| +* Re: RECALL commandVolker Halle
| |+- Re: RECALL commandJim
| |`* Re: RECALL commandChris Townley
| | `* Re: RECALL commandhb@end.of.inter.net
| |  `* Re: RECALL commandSimon Clubley
| |   `* Re: RECALL commandChris Townley
| |    `* Re: RECALL commandbill
| |     `* Re: RECALL commandChris Townley
| |      `* Re: RECALL commandSimon Clubley
| |       `* Re: RECALL commandChris Townley
| |        `- Re: RECALL commandJan-Erik Söderholm
| `- Re: RECALL commandArne Vajhøj
`* Re: RECALL commandBrian Schenkenberger
 +- Re: RECALL commandHein RMS van den Heuvel
 `* Re: RECALL commandArne Vajhøj
  `- Re: RECALL commandBrian Schenkenberger

1
RECALL command

<u720p3$38haa$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28627&group=comp.os.vms#28627

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: RECALL command
Date: Thu, 22 Jun 2023 18:35:28 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <u720p3$38haa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Jun 2023 17:35:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1805ca5a22163ce38553ce00b3412a57";
logging-data="3425610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19k+JfFf9G/UVXG/8JoeQKocxTKmeeCkQI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:NDnallzaJqk8XHVCxt9xrAVIiv8=
Content-Language: en-GB
 by: Chris Townley - Thu, 22 Jun 2023 17:35 UTC

Just being playing with a routine to squirrel away the command buffer on
logout, which be quite useful after a system maintenance session.

However when run in a command procedure, it just doesn't produce anything.

Is this normal?

BTW on E9.2-1

--
Chris

Re: RECALL command

<u721fk$38haa$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28628&group=comp.os.vms#28628

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Thu, 22 Jun 2023 18:47:29 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <u721fk$38haa$2@dont-email.me>
References: <u720p3$38haa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Jun 2023 17:47:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1805ca5a22163ce38553ce00b3412a57";
logging-data="3425610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aX0ENf05Eiv411rX19Eol049PtfsMN7w="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:huNKX8QSJcW85ZIe1Jyt44V2aQ4=
In-Reply-To: <u720p3$38haa$1@dont-email.me>
Content-Language: en-GB
 by: Chris Townley - Thu, 22 Jun 2023 17:47 UTC

On 22/06/2023 18:35, Chris Townley wrote:
> Just being playing with a routine to squirrel away the command buffer on
> logout, which be quite useful after a system maintenance session.
>
> However when run in a command procedure, it just doesn't produce anything.
>
> Is this normal?
>
> BTW on E9.2-1
>

Just checked on AXP V8.4-2L1 and that is the same. Using the /output
qualifier.

I could understand it not being available with other than the output
qualifier, or perhaps /ERASE, but seems a bit off!

--
Chris

Re: RECALL command

<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28629&group=comp.os.vms#28629

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:8ef:b0:5ef:5726:ba25 with SMTP id dr15-20020a05621408ef00b005ef5726ba25mr3240609qvb.0.1687457171810;
Thu, 22 Jun 2023 11:06:11 -0700 (PDT)
X-Received: by 2002:a05:622a:120a:b0:3f9:b63d:1bd8 with SMTP id
y10-20020a05622a120a00b003f9b63d1bd8mr7996013qtx.13.1687457171607; Thu, 22
Jun 2023 11:06:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 22 Jun 2023 11:06:11 -0700 (PDT)
In-Reply-To: <u721fk$38haa$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=140.162.13.30; posting-account=Cx45xwoAAAD0NLqIo3_yGuVPeDAcfc14
NNTP-Posting-Host: 140.162.13.30
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
Subject: Re: RECALL command
From: mckinn...@leidos.com (Jim)
Injection-Date: Thu, 22 Jun 2023 18:06:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2068
 by: Jim - Thu, 22 Jun 2023 18:06 UTC

On Thursday, June 22, 2023 at 1:47:37 PM UTC-4, Chris Townley wrote:
> On 22/06/2023 18:35, Chris Townley wrote:
> > Just being playing with a routine to squirrel away the command buffer on
> > logout, which be quite useful after a system maintenance session.
> >
> > However when run in a command procedure, it just doesn't produce anything.
> >
> > Is this normal?
> >
> > BTW on E9.2-1
> >
> Just checked on AXP V8.4-2L1 and that is the same. Using the /output
> qualifier.
>
> I could understand it not being available with other than the output
> qualifier, or perhaps /ERASE, but seems a bit off!
>
> --
> Chris

RECALL demands that the caller be at procedure depth 0 (the DCL prompt).
Execution within a command procedure has a procedure depth of 1 (or
more if a command procedure call another, etc). See

$ write sys$output f$environment("depth")

Re: RECALL command

<962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28630&group=comp.os.vms#28630

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:b804:0:b0:762:40aa:e160 with SMTP id i4-20020a37b804000000b0076240aae160mr3406691qkf.8.1687459201871;
Thu, 22 Jun 2023 11:40:01 -0700 (PDT)
X-Received: by 2002:ad4:58aa:0:b0:62f:eba1:dcff with SMTP id
ea10-20020ad458aa000000b0062feba1dcffmr3056293qvb.9.1687459201638; Thu, 22
Jun 2023 11:40:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 22 Jun 2023 11:40:01 -0700 (PDT)
In-Reply-To: <50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.245.21.117; posting-account=cHmS7AoAAACMYAFH9kP9m4l8qjrXLvte
NNTP-Posting-Host: 87.245.21.117
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me> <50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
Subject: Re: RECALL command
From: volker_h...@hotmail.com (Volker Halle)
Injection-Date: Thu, 22 Jun 2023 18:40:01 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Volker Halle - Thu, 22 Jun 2023 18:40 UTC

See previous similar discussion in

https://community.hpe.com/t5/operating-system-openvms/recall-command/td-p/4947602

Volker.

Re: RECALL command

<6af25da6-68c8-460d-a212-dff07287e175n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28631&group=comp.os.vms#28631

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:a69:b0:62f:eb55:72 with SMTP id ef9-20020a0562140a6900b0062feb550072mr2354936qvb.3.1687461129599;
Thu, 22 Jun 2023 12:12:09 -0700 (PDT)
X-Received: by 2002:ad4:57ae:0:b0:630:c08:925f with SMTP id
g14-20020ad457ae000000b006300c08925fmr2426960qvx.13.1687461129295; Thu, 22
Jun 2023 12:12:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 22 Jun 2023 12:12:09 -0700 (PDT)
In-Reply-To: <962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=140.162.13.30; posting-account=Cx45xwoAAAD0NLqIo3_yGuVPeDAcfc14
NNTP-Posting-Host: 140.162.13.30
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com> <962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6af25da6-68c8-460d-a212-dff07287e175n@googlegroups.com>
Subject: Re: RECALL command
From: mckinn...@leidos.com (Jim)
Injection-Date: Thu, 22 Jun 2023 19:12:09 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1594
 by: Jim - Thu, 22 Jun 2023 19:12 UTC

On Thursday, June 22, 2023 at 2:40:03 PM UTC-4, Volker Halle wrote:
> See previous similar discussion in
>
> https://community.hpe.com/t5/operating-system-openvms/recall-command/td-p/4947602
>
> Volker.

And https://groups.google.com/g/comp.os.vms/c/a1SlLIzkQm0/m/aV4-sHxgAgAJ
might also be of interest.

Re: RECALL command

<u726m9$38ieo$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28632&group=comp.os.vms#28632

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Thu, 22 Jun 2023 20:16:25 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <u726m9$38ieo$1@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
<962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 22 Jun 2023 19:16:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1805ca5a22163ce38553ce00b3412a57";
logging-data="3426776"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19StVogq1zVd1BNIdIhvOs/eB6emCrB5TQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:XzSQ9APx+akV8sYA5bIAE12BbWU=
In-Reply-To: <962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
Content-Language: en-GB
 by: Chris Townley - Thu, 22 Jun 2023 19:16 UTC

On 22/06/2023 19:40, Volker Halle wrote:
> See previous similar discussion in
>
> https://community.hpe.com/t5/operating-system-openvms/recall-command/td-p/4947602
>
> Volker.

Thanks, that gives some perspective, and possible workarounds. I have in
the past used set host/log but as said, you need to remember!

--
Chris

Re: RECALL command

<f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28633&group=comp.os.vms#28633

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:8787:0:b0:75b:3962:8dc6 with SMTP id j129-20020a378787000000b0075b39628dc6mr2809032qkd.1.1687474427276;
Thu, 22 Jun 2023 15:53:47 -0700 (PDT)
X-Received: by 2002:a81:4046:0:b0:55d:d5b1:c2bd with SMTP id
m6-20020a814046000000b0055dd5b1c2bdmr4282540ywn.8.1687474427084; Thu, 22 Jun
2023 15:53:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 22 Jun 2023 15:53:46 -0700 (PDT)
In-Reply-To: <u726m9$38ieo$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:9e8:32db:e600:8c63:5d27:c27b:856b;
posting-account=U8VIbwoAAAD-oRYtqvRwM1yjdPKmKsbA
NNTP-Posting-Host: 2001:9e8:32db:e600:8c63:5d27:c27b:856b
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com> <962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
<u726m9$38ieo$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>
Subject: Re: RECALL command
From: h47...@gmail.com (hb@end.of.inter.net)
Injection-Date: Thu, 22 Jun 2023 22:53:47 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1450
 by: hb@end.of.inter.net - Thu, 22 Jun 2023 22:53 UTC

You can define a logout symbol:
"logout:==pipe recall/out=session.history ; eoj"
or a different symbol :
"bye:==pipe recall/out=session.history ; logout/full".

Re: RECALL command

<u72r4l$3fequ$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28635&group=comp.os.vms#28635

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Thu, 22 Jun 2023 21:05:26 -0400
Organization: A noiseless patient Spider
Lines: 100
Message-ID: <u72r4l$3fequ$1@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 23 Jun 2023 01:05:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e3dbc36b43a6bef2356ade564a923cb7";
logging-data="3652446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DejCeYwefJXLJz3PM0L3CIfcarONEmes="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:AkBBWfLAPGDH4v4fvy5GNK8u+ac=
Content-Language: en-US
In-Reply-To: <50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
 by: Arne Vajhøj - Fri, 23 Jun 2023 01:05 UTC

On 6/22/2023 2:06 PM, Jim wrote:
> On Thursday, June 22, 2023 at 1:47:37 PM UTC-4, Chris Townley wrote:
>> On 22/06/2023 18:35, Chris Townley wrote:
>>> Just being playing with a routine to squirrel away the command buffer on
>>> logout, which be quite useful after a system maintenance session.
>>>
>>> However when run in a command procedure, it just doesn't produce anything.
>>>
>>> Is this normal?
>>>
>>> BTW on E9.2-1
>>>
>> Just checked on AXP V8.4-2L1 and that is the same. Using the /output
>> qualifier.
>>
>> I could understand it not being available with other than the output
>> qualifier, or perhaps /ERASE, but seems a bit off!
>
> RECALL demands that the caller be at procedure depth 0 (the DCL prompt).
> Execution within a command procedure has a procedure depth of 1 (or
> more if a command procedure call another, etc). See
>
> $ write sys$output f$environment("depth")

DCL may not be cooperative.

But the data is there, so if one is willing to wander
into unsupported territory, then ...

This code seems to accidental work on VMS Alpha 8.4:

.title sys2
PRC_C_CMDBUFSIZ=4097
.psect $PDATA quad,pic,con,lcl,shr,noexe,nowrt
; buf1: .blkb PRC_C_CMDBUFSIZ ; first copy of recall-buffer
buf2: .blkb PRC_C_CMDBUFSIZ ; second copy of recall-buffer
.psect $CODE quad,pic,con,lcl,shr,exe,nowrt
;***************************************
; ; SYS2_RECALL ( CMDSTR , CMDLEN , NCMD )
; ; recall commands
; ;***************************************
.entry sys2_recall,^m<r2,r3,r4,r5,r6,r7,r8,r9,r10,r11>
movl B^4(ap),r11
cvtwl (r11),r8 ; r8 = string length
movl B^4(r11),r11 ; r11 = string address
movl B^8(ap),r10 ; r10 = length address
movl #0,r9 ; r9 = count
movl #CTL$AG_CLIDATA,r0
movl W^PPD$L_PRC(r0),r0
movl W^PRC_L_RECALLPTR(r0),r7
moval W^PRC_G_COMMANDS(r0),r0
subl2 r0,r7
moval buf1,r1
movc3 #PRC_C_CMDBUFSIZ,(r0),(r1)
moval buf1,r1
moval buf2,r2
movc3 #PRC_C_CMDBUFSIZ,(r1),(r2)
moval buf2,r6
addl2 r6,r7 ; r7 = pointer in buf2
subl3 #PRC_C_CMDBUFSIZ,r7,r6 ; r6 = start in buf1
100$: subl2 #2,r7 ; move back to trailing length
cmpl r7,r6 ; if past start in buf1 done
blss 200$
tstw (r7) ; if zero length done
bleq 200$
cvtwl (r7),(r10) ; save length
subl2 (r10),r7
movc3 (r10),(r7),(r11) ; save string
addl2 #4,r10 ; increment length address
addl2 r8,r11 ; increment string address
incl r9 ; increment count
subl2 #4,r7 ; skip 4 bytes (new in later
VMS versions??)
brb 100$
200$: movl r9,@B^12(ap) ; save count
ret
.end

Test program:

program rdump
implicit none
integer*4 MAX_CMD
parameter (MAX_CMD=200)
character*256 cmd(MAX_CMD)
integer*4 lcmd(MAX_CMD), ncmd, i
call sys2_recall(cmd, lcmd, ncmd)
do 100 i = 1,ncmd
write(*,*) '|'//cmd(i)(1:lcmd(i))//'|'
100 continue
end

Arne

Re: RECALL command

<u74217$3nfhh$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28643&group=comp.os.vms#28643

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Fri, 23 Jun 2023 12:09:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <u74217$3nfhh$2@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me> <50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com> <962f377d-42de-4307-b600-5434435d6766n@googlegroups.com> <u726m9$38ieo$1@dont-email.me> <f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>
Injection-Date: Fri, 23 Jun 2023 12:09:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eea80e04efb2ad2e86ef4f619eb2e92d";
logging-data="3915313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1yXoak5p29+UceG089XtUDb6SZIIAIcs="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:Ngdr0sVisZir26Q9wpUeuvGzyaQ=
 by: Simon Clubley - Fri, 23 Jun 2023 12:09 UTC

On 2023-06-22, hb@end.of.inter.net <h4711b@gmail.com> wrote:
> You can define a logout symbol:
> "logout:==pipe recall/out=session.history ; eoj"
> or a different symbol :
> "bye:==pipe recall/out=session.history ; logout/full".

The problem with these workarounds is what happens if you have more
than one session going at the same time and you need to preserve the
commands entered during all sessions ?

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: RECALL command

<u745im$3mh3p$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28644&group=comp.os.vms#28644

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Fri, 23 Jun 2023 14:09:40 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <u745im$3mh3p$1@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
<962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
<u726m9$38ieo$1@dont-email.me>
<f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>
<u74217$3nfhh$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Jun 2023 13:09:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="709ed3590dfc499394df19d213968964";
logging-data="3884153"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YGpQPhyQ6a6nP8HzepCIaOyBt/g8M4WA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:iyHNnySwffGyByetTDxXjQjiU5A=
Content-Language: en-GB
In-Reply-To: <u74217$3nfhh$2@dont-email.me>
 by: Chris Townley - Fri, 23 Jun 2023 13:09 UTC

On 23/06/2023 13:09, Simon Clubley wrote:
> On 2023-06-22, hb@end.of.inter.net <h4711b@gmail.com> wrote:
>> You can define a logout symbol:
>> "logout:==pipe recall/out=session.history ; eoj"
>> or a different symbol :
>> "bye:==pipe recall/out=session.history ; logout/full".
>
> The problem with these workarounds is what happens if you have more
> than one session going at the same time and you need to preserve the
> commands entered during all sessions ?
>
> Simon.
>

VMS has a useful feature that allows for multiple file versions ;)

--
Chris

Re: RECALL command

<kflk61FktmiU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28645&group=comp.os.vms#28645

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Fri, 23 Jun 2023 09:14:40 -0400
Lines: 22
Message-ID: <kflk61FktmiU2@mid.individual.net>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
<962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
<u726m9$38ieo$1@dont-email.me>
<f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>
<u74217$3nfhh$2@dont-email.me> <u745im$3mh3p$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net SLMSgFw7p39LVCdNai+hyg4uCr2B0H0GloFq8ki9o4EsdAQ58X
Cancel-Lock: sha1:7idgVlqQucJ8BCSuRdG6iAStOEU=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Content-Language: en-US
In-Reply-To: <u745im$3mh3p$1@dont-email.me>
 by: bill - Fri, 23 Jun 2023 13:14 UTC

On 6/23/2023 9:09 AM, Chris Townley wrote:
> On 23/06/2023 13:09, Simon Clubley wrote:
>> On 2023-06-22, hb@end.of.inter.net <h4711b@gmail.com> wrote:
>>> You can define a logout symbol:
>>> "logout:==pipe recall/out=session.history ; eoj"
>>> or a different symbol :
>>> "bye:==pipe recall/out=session.history ; logout/full".
>>
>> The problem with these workarounds is what happens if you have more
>> than one session going at the same time and you need to preserve the
>> commands entered during all sessions ?
>>
>> Simon.
>>
>
> VMS has a useful feature that allows for multiple file versions ;)
>

And how do you tell which version is from which session?

bill

Re: RECALL command

<u746hs$3mg4u$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28646&group=comp.os.vms#28646

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Fri, 23 Jun 2023 14:26:18 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <u746hs$3mg4u$1@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
<962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
<u726m9$38ieo$1@dont-email.me>
<f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>
<u74217$3nfhh$2@dont-email.me> <u745im$3mh3p$1@dont-email.me>
<kflk61FktmiU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Jun 2023 13:26:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="709ed3590dfc499394df19d213968964";
logging-data="3883166"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VBZvfUrGiMDj1RJs0U1Z/wlhZ2sbsAJI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:c6Lh95cNnkG5rfVqp/zRU6az1Ks=
Content-Language: en-GB
In-Reply-To: <kflk61FktmiU2@mid.individual.net>
 by: Chris Townley - Fri, 23 Jun 2023 13:26 UTC

On 23/06/2023 14:14, bill wrote:
> On 6/23/2023 9:09 AM, Chris Townley wrote:
>> On 23/06/2023 13:09, Simon Clubley wrote:
>>> On 2023-06-22, hb@end.of.inter.net <h4711b@gmail.com> wrote:
>>>> You can define a logout symbol:
>>>> "logout:==pipe recall/out=session.history ; eoj"
>>>> or a different symbol :
>>>> "bye:==pipe recall/out=session.history ; logout/full".
>>>
>>> The problem with these workarounds is what happens if you have more
>>> than one session going at the same time and you need to preserve the
>>> commands entered during all sessions ?
>>>
>>> Simon.
>>>
>>
>> VMS has a useful feature that allows for multiple file versions ;)
>>
>
> And how do you tell which version is from which session?
>
> bill
>
Possibly with a bit of guesswork, or by looking at the contents.
Personally I want to be able to search for a command I previously used,
as I have done for years with *nix, so actually it doesn't really matter
which it was.

I am just checking out a way of naming the file for the login date
time, and the file creation date would give the logout time

--
Chris

Re: RECALL command

<u74kog$3phb0$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28651&group=comp.os.vms#28651

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Fri, 23 Jun 2023 17:28:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <u74kog$3phb0$2@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me> <50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com> <962f377d-42de-4307-b600-5434435d6766n@googlegroups.com> <u726m9$38ieo$1@dont-email.me> <f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com> <u74217$3nfhh$2@dont-email.me> <u745im$3mh3p$1@dont-email.me> <kflk61FktmiU2@mid.individual.net> <u746hs$3mg4u$1@dont-email.me>
Injection-Date: Fri, 23 Jun 2023 17:28:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eea80e04efb2ad2e86ef4f619eb2e92d";
logging-data="3982688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ruCZYbaCd6m1qCbQjEzCl9XI2b2JpZjQ="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:GvJ3lA2rVzUlQ5epY8zJ74v/IIE=
 by: Simon Clubley - Fri, 23 Jun 2023 17:28 UTC

On 2023-06-23, Chris Townley <news@cct-net.co.uk> wrote:
> Possibly with a bit of guesswork, or by looking at the contents.
> Personally I want to be able to search for a command I previously used,
> as I have done for years with *nix, so actually it doesn't really matter
> which it was.
>

With bash, it's much cleaner however, and I wish DCL had a bash-style
incremental search facility.

On Linux, I run with a command history buffer of 5,000 commands which
means all the regular commands never expire (both daily and across
multiple active projects), while allowing all the one-off junk to
eventually drop out of the command history buffer automatically.

One problem with your approach is that you will be saving all the
one-off junk as well as the commands you really want to save.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: RECALL command

<u74lbb$3mg4u$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28652&group=comp.os.vms#28652

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Fri, 23 Jun 2023 18:38:49 +0100
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <u74lbb$3mg4u$2@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
<962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
<u726m9$38ieo$1@dont-email.me>
<f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>
<u74217$3nfhh$2@dont-email.me> <u745im$3mh3p$1@dont-email.me>
<kflk61FktmiU2@mid.individual.net> <u746hs$3mg4u$1@dont-email.me>
<u74kog$3phb0$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Jun 2023 17:38:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="709ed3590dfc499394df19d213968964";
logging-data="3883166"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Z/tMbNSO91F/Ol5fv5wqaHkoQETHb9t8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:YI1wbIbMPAe5gV3g11N04sGETWw=
Content-Language: en-GB
In-Reply-To: <u74kog$3phb0$2@dont-email.me>
 by: Chris Townley - Fri, 23 Jun 2023 17:38 UTC

On 23/06/2023 18:28, Simon Clubley wrote:
> On 2023-06-23, Chris Townley <news@cct-net.co.uk> wrote:
>> Possibly with a bit of guesswork, or by looking at the contents.
>> Personally I want to be able to search for a command I previously used,
>> as I have done for years with *nix, so actually it doesn't really matter
>> which it was.
>>
>
> With bash, it's much cleaner however, and I wish DCL had a bash-style
> incremental search facility.
>
> On Linux, I run with a command history buffer of 5,000 commands which
> means all the regular commands never expire (both daily and across
> multiple active projects), while allowing all the one-off junk to
> eventually drop out of the command history buffer automatically.
>
> One problem with your approach is that you will be saving all the
> one-off junk as well as the commands you really want to save.
>
> Simon.
>

No problem with that. Just a load of files to GREP/SEARCH for that
stupidly complex that you worked out a few days/months ago!

If anybody is interested, I added the following to my LOGIN.COM for
interactive sessions:

$ if f$search("HIST.DIR") .eqs. "" then create/dire/log [.HIST]
$ hstnm = f$cvtime(f$getjpi("", "LOGINTIM"), "COMPARISON", "DATE") -
+ "_" + f$extract(0, 5, f$cvtime(f$getjpi("", -
"LOGINTIM"), "COMPARISON", "TIME")) - ":" + ".LIS"
$ hstnm = f$trnlnm("sys$login") - "]" + ".HIST]HST_''hstnm'"
$ lo*gout == "pipe recall/out=''histname' ; logouts /full "

On a home machine, could possibly add to SYLOGIN.COM
--
Chris

Re: RECALL command

<u768rf$2btj$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28661&group=comp.os.vms#28661

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Sat, 24 Jun 2023 10:17:51 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u768rf$2btj$2@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u721fk$38haa$2@dont-email.me>
<50aa6c8c-443c-4b75-bb2d-11d08f2fb449n@googlegroups.com>
<962f377d-42de-4307-b600-5434435d6766n@googlegroups.com>
<u726m9$38ieo$1@dont-email.me>
<f3a34eb6-bfc7-40e8-b3bf-eee20704e15en@googlegroups.com>
<u74217$3nfhh$2@dont-email.me> <u745im$3mh3p$1@dont-email.me>
<kflk61FktmiU2@mid.individual.net> <u746hs$3mg4u$1@dont-email.me>
<u74kog$3phb0$2@dont-email.me> <u74lbb$3mg4u$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 24 Jun 2023 08:17:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e9aaa45a08dce613266e8f3e03fae50e";
logging-data="77747"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+z1V1F0J4WW9VZySYUDaqU"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:qR7VMI+NadPEDV3RPa7Z4ChuNRo=
In-Reply-To: <u74lbb$3mg4u$2@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Sat, 24 Jun 2023 08:17 UTC

Den 2023-06-23 kl. 19:38, skrev Chris Townley:
> On 23/06/2023 18:28, Simon Clubley wrote:
>> On 2023-06-23, Chris Townley <news@cct-net.co.uk> wrote:
>>> Possibly with a bit of guesswork, or by looking at the contents.
>>> Personally I want to be able to search for a command I previously used,
>>> as I have done for years with *nix, so actually it doesn't really matter
>>> which it was.
>>>
>>
>> With bash, it's much cleaner however, and I wish DCL had a bash-style
>> incremental search facility.
>>
>> On Linux, I run with a command history buffer of 5,000 commands which
>> means all the regular commands never expire (both daily and across
>> multiple active projects), while allowing all the one-off junk to
>> eventually drop out of the command history buffer automatically.
>>
>> One problem with your approach is that you will be saving all the
>> one-off junk as well as the commands you really want to save.
>>
>> Simon.
>>
>
> No problem with that. Just a load of files to GREP/SEARCH for that
> stupidly complex that you worked out a few days/months ago!

Those commands should be in a COM file anyway.

Re: RECALL command

<u81d12$4lfh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28684&group=comp.os.vms#28684

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mai...@SendSpamHere.ORG (Brian Schenkenberger)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Tue, 4 Jul 2023 11:14:42 -0400
Organization: Tmesis Software
Lines: 49
Message-ID: <u81d12$4lfh$1@dont-email.me>
References: <u720p3$38haa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="7e955c3f0e17bf141c7f0bc25c08f2c4";
logging-data="153073"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++QOxqgX6j+awf/A57gDUq"
User-Agent: Unison/2.2
Cancel-Lock: sha1:1e+3ON71qWTNZU+4acWxJ4MVQMo=
 by: Brian Schenkenberger - Tue, 4 Jul 2023 15:14 UTC

On 2023-06-22 17:35:28 +0000, Chris Townley said:

> Just being playing with a routine to squirrel away the command buffer
> on logout, which be quite useful after a system maintenance session.
>
> However when run in a command procedure, it just doesn't produce anything.
>
> Is this normal?
>
> BTW on E9.2-1

Set the procedure level to 0 in your command procedure before executing
the RECALL commands.

File PROCLVL0.MAR is:

.TITLE PROCLVL0
.IDENT "V01.0 %2023.185"

$SSDEF

.ENTRY GO,0
$CMEXEC_S routin = PROCLVL0
RET

.ENTRY PROCLVL0,0

MOVAB @#CTL$AG_CLIDATA,R0 ; get the base of CLI data region
MOVL PPD$L_PRC(R0),R0 ; add address of CLI own storage
CLRW PRC_W_PROCLEVEL(R0) ; zap current DCL procedure level
MOVL #SS$_NORMAL,R0
RET

.END GO

$ MACRO PROCLVL0
$ LINK/SYSEXE PROCLVL0,SYS$LOADABLE_IMAGES:DCLDEF.STB

File LOGOUT_SAVE_RECALL.COM is:

$ RUN PROCLVL0
$ RECALL/ALL
$ RECALL/OUTPUT=RECALL.BUFFER
$ LOGOUT/FULL

Don't muck about in DCL too much after you've zapped its procedure level.

Re: RECALL command

<5c9ebadb-efdc-4b14-b5b1-367a4b3fcc04n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28691&group=comp.os.vms#28691

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:4594:b0:765:aafa:5be7 with SMTP id bp20-20020a05620a459400b00765aafa5be7mr42389qkb.14.1688576881638;
Wed, 05 Jul 2023 10:08:01 -0700 (PDT)
X-Received: by 2002:a17:902:8d98:b0:1b8:a29e:a0ba with SMTP id
v24-20020a1709028d9800b001b8a29ea0bamr5679725plo.10.1688576881179; Wed, 05
Jul 2023 10:08:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.in-chemnitz.de!news2.arglkargh.de!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 5 Jul 2023 10:08:00 -0700 (PDT)
In-Reply-To: <u81d12$4lfh$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=73.234.171.161; posting-account=U1iMPAoAAAC9r8wm0KaW63EcF8sfjFeH
NNTP-Posting-Host: 73.234.171.161
References: <u720p3$38haa$1@dont-email.me> <u81d12$4lfh$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c9ebadb-efdc-4b14-b5b1-367a4b3fcc04n@googlegroups.com>
Subject: Re: RECALL command
From: heinvand...@gmail.com (Hein RMS van den Heuvel)
Injection-Date: Wed, 05 Jul 2023 17:08:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Hein RMS van den Heu - Wed, 5 Jul 2023 17:08 UTC

On Tuesday, July 4, 2023 at 11:14:46 AM UTC-4, Brian Schenkenberger wrote:
> On 2023-06-22 17:35:28 +0000, Chris Townley said:
>
> > Just being playing with a routine to squirrel away the command buffer
: > > However when run in a command procedure, it just doesn't produce anything.

> Set the procedure level to 0 in your command procedure before executing
: > CLRW PRC_W_PROCLEVEL(R0) ; zap current DCL procedure level
: > Don't muck about in DCL too much after you've zapped its procedure level.

Nice!
Hein.

Re: RECALL command

<u84f9j$jmn4$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28693&group=comp.os.vms#28693

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Wed, 5 Jul 2023 15:11:48 -0400
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <u84f9j$jmn4$1@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u81d12$4lfh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 5 Jul 2023 19:11:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fe3040616b7c5c29fd54b47ca31e5662";
logging-data="645860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uECelK+1tHaFw+ecQHpKnyxsAduS87/M="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:RUOI6ZS6QhP2aM0PtXuGB2ghkf8=
In-Reply-To: <u81d12$4lfh$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Wed, 5 Jul 2023 19:11 UTC

On 7/4/2023 11:14 AM, Brian Schenkenberger wrote:
> On 2023-06-22 17:35:28 +0000, Chris Townley said:
>> Just being playing with a routine to squirrel away the command buffer
>> on logout, which be quite useful after a system maintenance session.
>>
>> However when run in a command procedure, it just doesn't produce
>> anything.

> Set the procedure level to 0 in your command procedure before executing
> the RECALL commands.
>
> File PROCLVL0.MAR is:
>
>     .TITLE    PROCLVL0
>     .IDENT    "V01.0 %2023.185"
>
>     $SSDEF
>
>     .ENTRY    GO,0
>     $CMEXEC_S    routin    = PROCLVL0
>     RET
>
>     .ENTRY    PROCLVL0,0
>
>     MOVAB    @#CTL$AG_CLIDATA,R0        ; get the base of CLI data region
>     MOVL    PPD$L_PRC(R0),R0        ; add address of CLI own storage
>     CLRW    PRC_W_PROCLEVEL(R0)    ; zap current DCL procedure level
>     MOVL    #SS$_NORMAL,R0
>     RET
>
>     .END    GO

Brilliant.

But note that privs are required.

Arne

Re: RECALL command

<u8mj1t$3as0f$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28769&group=comp.os.vms#28769

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mai...@SendSpamHere.ORG (Brian Schenkenberger)
Newsgroups: comp.os.vms
Subject: Re: RECALL command
Date: Wed, 12 Jul 2023 12:06:21 -0400
Organization: Tmesis Software
Lines: 51
Message-ID: <u8mj1t$3as0f$1@dont-email.me>
References: <u720p3$38haa$1@dont-email.me> <u81d12$4lfh$1@dont-email.me> <u84f9j$jmn4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="e335b8a17d67f45d3b7e6314e8a3f7a0";
logging-data="3502095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Q4LlvbjBvfPBPzRAOKCZb"
User-Agent: Unison/2.2
Cancel-Lock: sha1:bv8gOLxNcMy+2Ctqd8bbenwAv0c=
 by: Brian Schenkenberger - Wed, 12 Jul 2023 16:06 UTC

On 2023-07-05 19:11:48 +0000, Arne Vajhj said:

> On 7/4/2023 11:14 AM, Brian Schenkenberger wrote:
>> On 2023-06-22 17:35:28 +0000, Chris Townley said:
>>> Just being playing with a routine to squirrel away the command buffer
>>> on logout, which be quite useful after a system maintenance session.
>>>
>>> However when run in a command procedure, it just doesn't produce anything.
>
>> Set the procedure level to 0 in your command procedure before executing
>> the RECALL commands.
>>
>> File PROCLVL0.MAR is:
>>
>>     .TITLE    PROCLVL0
>>     .IDENT    "V01.0 %2023.185"
>>
>>     $SSDEF
>>
>>     .ENTRY    GO,0
>>     $CMEXEC_S    routin    = PROCLVL0
>>     RET
>>
>>     .ENTRY    PROCLVL0,0
>>
>>     MOVAB    @#CTL$AG_CLIDATA,R0        ; get the base of CLI data region
>>     MOVL    PPD$L_PRC(R0),R0        ; add address of CLI own storage
>>     CLRW    PRC_W_PROCLEVEL(R0)    ; zap current DCL procedure level
>>     MOVL    #SS$_NORMAL,R0
>>     RET
>>
>>     .END    GO
>
> Brilliant.
>
> But note that privs are required.
>
> Arne

True! Most of DCL storage is URSW. Hopping to EXEC mode allows one to
change things that DCL would rather not have changed; at least, by the
user. ;)

This little snippet of code is rather inocuous; it can be installed
with EXEC privilege. Run from the command line, it doesn't do anything
because PROCLEVEL _is_ zero. However, when run in a command procedure,
exiting to the command line will logout the process. Thus, my
LOGOUT/FULL was really not necessary unless one wishes to see the
accounting report that it issues.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor