so the question for the group today is:
how do we use variables within scripts ?
I wanted to autocompile a CSP directory whenever I upgrade and automate
as much as possible.
I copy the csp pages and rules over to "production", and then from the
terminal, call a script the contents are as follows:
<script>
title: Compiling the entire site
execute del c:\CompileSite.log
logfile: c:\CompileSite.log
; define the name of the package I am compiling
send:set PackName="Jit50"<cr>
send:Do $SYSTEM.CSP.LoadRuleDir("/csp/"_PackName_"/CSRRules/","ck")<CR>
;send:Do $SYSTEM.CSP.LoadRuleDir("/csp/jit50/CSRRules/","ck")<CR>
;send:Do $SYSTEM.CSP.LoadPageDir("/csp/jit50/","ck")<CR>
; when the command reappears, close the logfile
; wait for:JIT50>
wait for: $zcvt(PackName,"u")_>
closelog
send: set MachineName=$zu(131,1)<cr>
send: k PackName<cr>
send: set MachineName=$zu(131,1)<cr>
title: MachineName
</script>
I can see the use of <p1> <p2> etc but I wanted to do the equivilent
of:
set PackName="Jit50"
title: PackName
title: @PackName
but of course, all this does is set the title to "PackName" or
"@PackName" - not quite what I wanted/
basically I want to re-set the title of the window how I found it.
eg: $zu(131,1)_" NTI - Cache Telnet"
does anyone know how to do it please?
I've read the documents at
http://localhost:1972/csp/docbook/DocBook.UI.Page.cls?
KEY=ACTERM_Help#ACTERM_Help_Scripts_General
kev
PS.
If I ignore any responses, its because for the first time this year, I
have to work for a living and thought I would leave the group with a
question and read the responses? when I come home later in the day !