Kevin, I would use cache.exe for that. You can write a routine or a class method and call it like this:
echo Do ^^YourRoutine(YourParameter) H |c:\CacheSys\bin\cache.exe -sc:\CacheSys\mgr -uNameSpace As you see, you pipe Cach� commands to cache.exe The simpiest thing to test, if it works: echo Write "Hello World!" H |c:\CacheSys\bin\cache.exe -sc:\CacheSys\mgr -uNameSpace We've already written many batchfiles that works like this and never had problems. Even on machines with 2 different Versions of Cach�! Regards Alexander Riemer BEWIDATA "kevin furze" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > 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 ! >
