Page 1 of 1 1
Topic Options
#13900 - 2001-11-05 03:30 PM Running script exe's and dll's locally
MickL Offline
Lurker

Registered: 2001-11-05
Posts: 4
Loc: Salford
I've been running kix scripts on our network for 3 years now and it all works great. One of the few areas our users complain about is the time it takes to log onto the network (running scripts) when they dialup. Most of the delay being down to getting kix32.exe and the dll's into client memory from the domain controller before script execution starts. As we're going to implement XP on clients very soon now I've been thinking about changing our setup and putting the kix files on C: drives (they don't change unless a new version needs to be implemented) and then running them against the often changing scripts which will stay on the domain controllers. Question is, is this a bad idea? If not, has anyone tried this and what's the syntax of logon.bat....C:\Scripts\kix32.exe "nearest DC..kick.scr".
PS. No earache about why we're going to XP now thanks.

Top
#13901 - 2001-11-05 03:34 PM Re: Running script exe's and dll's locally
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
many people run kix this way.

note: for XP, you will not need the dll's.
the syntax for your bat file will be like this.

<local path>kix32.exe %0\..\logonscript.kix

but, i have been hearing about issues with XP and the use of "%0\..\"

Bryce

Top
#13902 - 2001-11-05 03:43 PM Re: Running script exe's and dll's locally
MickL Offline
Lurker

Registered: 2001-11-05
Posts: 4
Loc: Salford
For XP no need for DLL's? Does that apply if we're using Kix V3.63.
Top
#13903 - 2001-11-05 05:20 PM Re: Running script exe's and dll's locally
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
yep.

XP, Win2k and NT os's do not need the kx*.dll files.

only Win9x, and ME OS's need the kx*.dll files and the KXrpc service running too.

Bryce

Top
#13904 - 2001-11-06 03:30 AM Re: Running script exe's and dll's locally
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

We advise you to install your kixtart binaries on your clients.

Questions: how?

A way of installing/updating kixtart of your clients: with only one additional statement

For the installation of kixtart at your local workstation we see many version of doing it.
Most statements in your BATch file are using for this duty.
But there is also a way of doing it with a single statement, which doesn't only copy
the required files, but also compare file version information. After completion a logfile
will be created at your local workstation.

Another way of installing/updating kixtart on your clients:

For installing or updating of your clients you can download our packages kix363update.exe
or kix400update.exe from our site http:\\home.wanadoo.nl\scripting .


Possible calls in your logon procedure can be:

As first line of your logon procedure you can use one of following formats:

  • x:\kixtart\kix363update.exe /q
  • %0\..\kix363update.exe /q
  • if not exist c:\kix363.ok %0\..\kix363update.exe /q

Second line can be something like:
  • kix32 %0\..\your_script.kix

Results of your BATCH can be:

code:

@echo off
%0\..\kix363update.exe /q
kix32 %0\..\your_script.kix
@echo off


or for dial-up environments (= update package will transfer only once)
code:

@echo off
if not exist c:\kix363.ok %0\..\kix363update.exe /q
kix32 %0\..\your_script.kix
@echo off

After using above programs there will be created a control
file c:\kix363.ok or c:\kix400.ok. So it isn't necessary to
run the installation process again, but we advise to update
(or better: verify) kixtart files always.Reason: a security
leak for running kixtart from clients.


remarks: SECURITY LEAK for running kixtart from clients

running kix32.exe from a local workstation can have also unwanted effects. An user
can modify or replace your kix32.exe file. f.e. not to run your script but for
reading your script.
For RAS users it is interesting not to download each time the kixtart required files,
but for other user we advise:
always check the kixtart files and update them when necessary before running your KIX scripts.

fix for SECURITY LEAK:

In our case the first statement of our default logon procedure for network users is:
%0\..\kix363update.exe /q
and it will guarantee that kix32.exe file will always the correct one.


remarks: performance

  • only 150 KBytes will be transfered to your workstation. the package has been compressed.
  • always the correct set of kixtart files will be used. during the execution of scripts
    the user can already starts working.
  • during installation or updating kixtart you will not get share violation error or busy file
    error. the install.kix scripts runs with his own kixtart version.
  • for RAS users we create additional authorizations which will run minimum set of script code.
    for them the logon procedure containts as statement:
    if not exist c:\kix363.ok %0\..\kix363update.exe /q

Greetings.


btw: related kixtart topic http://kixtart.org/board/Forum2/HTML/000583.html

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#13905 - 2001-11-07 12:21 AM Re: Running script exe's and dll's locally
MickL Offline
Lurker

Registered: 2001-11-05
Posts: 4
Loc: Salford
WINXP and NT4.0 server.

Just tried C:\Scripts\kix32.exe %0\..\kick.scr and got failed to find/open script.

%0\..\kix32.exe kick.scr is ok.

Looking for solution now.

Top
#13906 - 2001-11-07 05:37 AM Re: Running script exe's and dll's locally
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We did a short analyze what is going on with a kix32.exe call.

  • kix32.exe
    means
    - first try to find a script kixtart.scr in your working directory,
    which doesn't mean "it is your NETLOGON directory".
    - secondly it will try to find a script kixtart.kix also in your
    working directory.

    conclusion: it only search for a script in your working directory. first with the
    .scr extension and later with the .kix extension.

  • kix32 x:\scripts\your_script

    it will search first for the script your_script.scr and secondly for
    the script your_script.kix in the directory x:\scripts.

  • kix32 x:\scripts\our_secure_script.txt

    it will not search for a file, but try to execute specified file. the extension
    of it isn't important. the contents must only be kixtart code.

please can you put your bat file on the board.
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1452 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.163 seconds in which 0.142 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org