Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<miguel> any new sendmail hole I have to fix before going on vacations? -- Seen on #Linux


computers / comp.sys.tandem / Determining the full filename of a TACL script file

SubjectAuthor
* Determining the full filename of a TACL script fileAndrew Mould
`* Re: Determining the full filename of a TACL script fileFSGWGB
 `* Re: Determining the full filename of a TACL script fileRandall
  `- Re: Determining the full filename of a TACL script fileAndrew Mould

1
Determining the full filename of a TACL script file

<5cc245ec-2c49-488a-992a-12a67ff12267n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=605&group=comp.sys.tandem#605

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:a05:620a:28d1:b0:748:5b93:ec65 with SMTP id l17-20020a05620a28d100b007485b93ec65mr884578qkp.13.1679864778415;
Sun, 26 Mar 2023 14:06:18 -0700 (PDT)
X-Received: by 2002:a05:6902:18c2:b0:b78:5662:d5bb with SMTP id
ck2-20020a05690218c200b00b785662d5bbmr3489919ybb.3.1679864778228; Sun, 26 Mar
2023 14:06:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.tandem
Date: Sun, 26 Mar 2023 14:06:17 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=76.224.185.17; posting-account=_ZYwYgkAAADkIwsyHXP19ZzERhLYfKAT
NNTP-Posting-Host: 76.224.185.17
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5cc245ec-2c49-488a-992a-12a67ff12267n@googlegroups.com>
Subject: Determining the full filename of a TACL script file
From: andr...@ascert.com (Andrew Mould)
Injection-Date: Sun, 26 Mar 2023 21:06:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 17
 by: Andrew Mould - Sun, 26 Mar 2023 21:06 UTC

Anyone know of a method or trick to reliably determine the full filename (ie including subvolume) of a TACL script file when it's executed? Something like the equivalent of Bash's $0 variable?

I often want to know where the script file is located in order to find related files in the same subvolume. The only reliable way I see to achieve this is to pass the subvolume info in to the script as a param. Every time I face this problem I think there has to be a better way.

Note I want this to be reliable. There are convoluted tricks you can do when operating at the command line, which don't work when a script file is invoked from another TACL macro / routine.

I don't hold out much hope. The TACL reference manual itself says: "...a routine stored in a ?TACL ROUTINE file cannot determine the name of the file it is stored in...". But I thought I'd poll the collective brain trust!

- Andrew

Re: Determining the full filename of a TACL script file

<52e194cf-d2e2-4908-b107-f9209df0d0e8n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=606&group=comp.sys.tandem#606

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:a05:622a:199a:b0:3db:c138:ae87 with SMTP id u26-20020a05622a199a00b003dbc138ae87mr4987882qtc.6.1679942756347;
Mon, 27 Mar 2023 11:45:56 -0700 (PDT)
X-Received: by 2002:a25:e054:0:b0:b6b:d3f3:45af with SMTP id
x81-20020a25e054000000b00b6bd3f345afmr8330264ybg.1.1679942756098; Mon, 27 Mar
2023 11:45:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!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.sys.tandem
Date: Mon, 27 Mar 2023 11:45:55 -0700 (PDT)
In-Reply-To: <5cc245ec-2c49-488a-992a-12a67ff12267n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=172.58.85.253; posting-account=qne_MwkAAABBz_3oXboSSm-ApH7SsENY
NNTP-Posting-Host: 172.58.85.253
References: <5cc245ec-2c49-488a-992a-12a67ff12267n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <52e194cf-d2e2-4908-b107-f9209df0d0e8n@googlegroups.com>
Subject: Re: Determining the full filename of a TACL script file
From: wbai...@firstsystemsgroup.com (FSGWGB)
Injection-Date: Mon, 27 Mar 2023 18:45:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2465
 by: FSGWGB - Mon, 27 Mar 2023 18:45 UTC

On Sunday, March 26, 2023 at 4:06:19 PM UTC-5, Andrew Mould wrote:
> Anyone know of a method or trick to reliably determine the full filename (ie including subvolume) of a TACL script file when it's executed? Something like the equivalent of Bash's $0 variable?
>
> I often want to know where the script file is located in order to find related files in the same subvolume. The only reliable way I see to achieve this is to pass the subvolume info in to the script as a param. Every time I face this problem I think there has to be a better way.
>
> Note I want this to be reliable. There are convoluted tricks you can do when operating at the command line, which don't work when a script file is invoked from another TACL macro / routine.
>
> I don't hold out much hope. The TACL reference manual itself says: "...a routine stored in a ?TACL ROUTINE file cannot determine the name of the file it is stored in...". But I thought I'd poll the collective brain trust!
>
> - Andrew
If the script is a ?TACL MACRO you can reference %0% to retrieve the name of the Macro file.

for example

fup copy tryit
?Tacl Macro
#OUTPUT %0%
2 RECORDS TRANSFERRED
13> run tryit
\SYFDEV.$USER.WAYNE.TRYIT

Re: Determining the full filename of a TACL script file

<cbdbcd6c-2351-4f35-90c9-69d2b692b0dbn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=607&group=comp.sys.tandem#607

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:ac8:5905:0:b0:3df:bda6:6931 with SMTP id 5-20020ac85905000000b003dfbda66931mr4521763qty.2.1679946167484;
Mon, 27 Mar 2023 12:42:47 -0700 (PDT)
X-Received: by 2002:a05:6902:124a:b0:b43:8424:2a4c with SMTP id
t10-20020a056902124a00b00b4384242a4cmr8023964ybu.10.1679946167262; Mon, 27
Mar 2023 12:42:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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.sys.tandem
Date: Mon, 27 Mar 2023 12:42:47 -0700 (PDT)
In-Reply-To: <52e194cf-d2e2-4908-b107-f9209df0d0e8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fea8:3fa9:4200:ad70:b5ae:caf3:86f0;
posting-account=6VebZwoAAAAgrpUtsowyjrKRLNlqxnXo
NNTP-Posting-Host: 2607:fea8:3fa9:4200:ad70:b5ae:caf3:86f0
References: <5cc245ec-2c49-488a-992a-12a67ff12267n@googlegroups.com> <52e194cf-d2e2-4908-b107-f9209df0d0e8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cbdbcd6c-2351-4f35-90c9-69d2b692b0dbn@googlegroups.com>
Subject: Re: Determining the full filename of a TACL script file
From: rsbec...@nexbridge.com (Randall)
Injection-Date: Mon, 27 Mar 2023 19:42:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2801
 by: Randall - Mon, 27 Mar 2023 19:42 UTC

On Monday, March 27, 2023 at 2:45:57 p.m. UTC-4, FSGWGB wrote:
> On Sunday, March 26, 2023 at 4:06:19 PM UTC-5, Andrew Mould wrote:
> > Anyone know of a method or trick to reliably determine the full filename (ie including subvolume) of a TACL script file when it's executed? Something like the equivalent of Bash's $0 variable?
> >
> > I often want to know where the script file is located in order to find related files in the same subvolume. The only reliable way I see to achieve this is to pass the subvolume info in to the script as a param. Every time I face this problem I think there has to be a better way.
> >
> > Note I want this to be reliable. There are convoluted tricks you can do when operating at the command line, which don't work when a script file is invoked from another TACL macro / routine.
> >
> > I don't hold out much hope. The TACL reference manual itself says: "...a routine stored in a ?TACL ROUTINE file cannot determine the name of the file it is stored in...". But I thought I'd poll the collective brain trust!
> >
> > - Andrew
> If the script is a ?TACL MACRO you can reference %0% to retrieve the name of the Macro file.
>
> for example
>
> fup copy tryit
> ?Tacl Macro
> #OUTPUT %0%
> 2 RECORDS TRANSFERRED
> 13> run tryit
> \SYFDEV.$USER.WAYNE.TRYIT

You can do this as above for TACL MACROs but not for TACL ROUTINEs, AFAIK.
--Randall

Re: Determining the full filename of a TACL script file

<c958aca2-c533-4ec1-9804-4026b65f14a1n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=608&group=comp.sys.tandem#608

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:a05:620a:4727:b0:746:7be8:f89e with SMTP id bs39-20020a05620a472700b007467be8f89emr5012816qkb.7.1679983168819;
Mon, 27 Mar 2023 22:59:28 -0700 (PDT)
X-Received: by 2002:a81:d30b:0:b0:545:64d7:5086 with SMTP id
y11-20020a81d30b000000b0054564d75086mr6733537ywi.1.1679983168668; Mon, 27 Mar
2023 22:59:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.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.sys.tandem
Date: Mon, 27 Mar 2023 22:59:28 -0700 (PDT)
In-Reply-To: <cbdbcd6c-2351-4f35-90c9-69d2b692b0dbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=76.224.185.17; posting-account=_ZYwYgkAAADkIwsyHXP19ZzERhLYfKAT
NNTP-Posting-Host: 76.224.185.17
References: <5cc245ec-2c49-488a-992a-12a67ff12267n@googlegroups.com>
<52e194cf-d2e2-4908-b107-f9209df0d0e8n@googlegroups.com> <cbdbcd6c-2351-4f35-90c9-69d2b692b0dbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c958aca2-c533-4ec1-9804-4026b65f14a1n@googlegroups.com>
Subject: Re: Determining the full filename of a TACL script file
From: andr...@ascert.com (Andrew Mould)
Injection-Date: Tue, 28 Mar 2023 05:59:28 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3078
 by: Andrew Mould - Tue, 28 Mar 2023 05:59 UTC

On Monday, March 27, 2023 at 12:42:48 PM UTC-7, Randall wrote:
> On Monday, March 27, 2023 at 2:45:57 p.m. UTC-4, FSGWGB wrote:
> > On Sunday, March 26, 2023 at 4:06:19 PM UTC-5, Andrew Mould wrote:
> > > Anyone know of a method or trick to reliably determine the full filename (ie including subvolume) of a TACL script file when it's executed? Something like the equivalent of Bash's $0 variable?
> > >
> > > I often want to know where the script file is located in order to find related files in the same subvolume. The only reliable way I see to achieve this is to pass the subvolume info in to the script as a param. Every time I face this problem I think there has to be a better way.
> > >
> > > Note I want this to be reliable. There are convoluted tricks you can do when operating at the command line, which don't work when a script file is invoked from another TACL macro / routine.
> > >
> > > I don't hold out much hope. The TACL reference manual itself says: "....a routine stored in a ?TACL ROUTINE file cannot determine the name of the file it is stored in...". But I thought I'd poll the collective brain trust!
> > >
> > > - Andrew
> > If the script is a ?TACL MACRO you can reference %0% to retrieve the name of the Macro file.
> >
> > for example
> >
> > fup copy tryit
> > ?Tacl Macro
> > #OUTPUT %0%
> > 2 RECORDS TRANSFERRED
> > 13> run tryit
> > \SYFDEV.$USER.WAYNE.TRYIT
> You can do this as above for TACL MACROs but not for TACL ROUTINEs, AFAIK..
> --Randall
Yeah I was only thinking about TACL ROUTINEs, but using a TACL MACRO wrapper will actually work.

Thanks to both of you

- Andrew

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor