#36964 - 2003-02-26 02:47 PM
Bug in KiXtart 4.20 with @HOMESHR
|
Bobby Chan
Fresh Scripter
Registered: 2002-02-07
Posts: 28
Loc: Montreal, Quebec, Canada
|
I don't know if any of you noticed this, but I just upgraded our old KiXtart engine from 3.62 to 4.20 and our logon script no longer works on Win9x machines. I have narrowed it to the @HOMESHR command. Here is what we have:
IF @HOMESHR <> "" USE U: @HOMESHR ENDIF
This used to work with KiXtart 3.62, but with 4.20 it just dies. However, if you redirect @HOMESHR to a variable and use the variable instead, it works. Ex:
$x = @HOMESHR IF $x <> "" USE U: $x ENDIF
Has anybody seen this on their systems?
|
Top
|
|
|
|
#36967 - 2003-02-26 03:14 PM
Re: Bug in KiXtart 4.20 with @HOMESHR
|
Bobby Chan
Fresh Scripter
Registered: 2002-02-07
Posts: 28
Loc: Montreal, Quebec, Canada
|
No, I am not running KiXScripts Editor.
|
Top
|
|
|
|
#36970 - 2003-02-26 04:16 PM
Re: Bug in KiXtart 4.20 with @HOMESHR
|
Bobby Chan
Fresh Scripter
Registered: 2002-02-07
Posts: 28
Loc: Montreal, Quebec, Canada
|
No, I have no updated the KiXtart RPC Server service. We were not using that on our Win9x machines. [ 26. February 2003, 16:17: Message edited by: Bobby Chan ]
|
Top
|
|
|
|
#36973 - 2003-02-26 04:36 PM
Re: Bug in KiXtart 4.20 with @HOMESHR
|
Bobby Chan
Fresh Scripter
Registered: 2002-02-07
Posts: 28
Loc: Montreal, Quebec, Canada
|
Ahhh... that clears some things up. Still weird that it worked with KiX 3.62 and not 4.20. Oh well... Thanks Guys.
|
Top
|
|
|
|
#36975 - 2003-02-27 02:43 AM
Re: Bug in KiXtart 4.20 with @HOMESHR
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
The KXRPC releases are compatible. Upgrading to a new release requires in your situation an upgrade of KXRPC on all servers. There are no known problems with the @homeshr in this kixtart 4.20 or earlier releases.
Can you run following script and return the output of file %tmp%\kixdebug.txt to the board
code:
;CLS IF (instr("-3.0x-3.1x-3.2x-3.3x-","-"+substr(@kix,1,3)+"x-") <> 0) IF MessageBox("sorry, your kixtart "+@kix+" release is too old."+CHR(13)+CHR(10)+CHR(13)+CHR(10)+" please upgrade.","KiXtart "+@kix+" info",4112,300) ENDIF EXIT ENDIF COLOR C+/N ;AT (1,1) " "
$_debug_file="kixdebug.txt" ; - %tmp% directory - IF (len($_debug_file) <> 0) IF (substr("%tmp%",len("%tmp%"),1) = "\") $_debug_file="%tmp%"+$_debug_file ELSE $_debug_file="%tmp%\"+$_debug_file ENDIF ENDIF ;$_debug_file="c:\kixdebug.txt" IF RedirectOutput($_debug_file) ENDIF
? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/4.00e script starting" IF (Val(substr(@kix,1,1)) >= 4) IF (len(@scriptname) <> 0) " ("+LCASE(@scriptname)+")" ENDIF ENDIF ? "-" IF ("$_debug_already_starting" <> "yes") ? "-curdir: "+LCASE(@curdir) ? "-scriptdir: "+LCASE(@scriptdir) IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0) ? "-scriptname: "+LCASE(@scriptname) ENDIF ? "-startdir: "+LCASE(@startdir) ? "-" ? "-userid: "+LCASE(@userid)+"/"+LCASE(@wuserid) ? "-user priv: "+LCASE(@priv) IF (instr("-4.xx-","-"+substr(@kix,1,2)+"xx-") <> 0) ? "-version: inwin="+@inwin+"/dos="+@dos+"/productsuite="+@productsuite+"/producttype="+@producttype+"/csd="+LTRIM(RTRIM(@csd)) ELSE ? "-version: inwin="+@inwin+"/dos="+@dos ENDIF ? "-" IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0) ? "-"+@cpu+" (memory "+MemorySize()+" MB)" ? "-" ENDIF ENDIF
$_debug_temp_name="" ; -format: yyyymmdd_hhmmss.sss_999 scriptname- IF (instr("-3.6x-","-"+substr(@kix,1,3)+"x-") <> 0) OR (Val(substr(@kix,1,1)) >= 4) IF (instr("-4.xx-","-"+substr(@kix,1,2)+"xx-") <> 0) $_debug_temp_name=@msecs SELECT CASE (len($_debug_temp_name) = 1) $_debug_temp_name="00"+$_debug_temp_name CASE (len($_debug_temp_name) = 2) $_debug_temp_name="0"+$_debug_temp_name ENDSELECT $_debug_temp_name="."+$_debug_temp_name IF Srnd(@msecs) ENDIF SLEEP 0.050 ELSE IF Srnd((-1)*32767/(substr(@time,7,2)+1)) ENDIF SLEEP 1 ENDIF $_debug_temp_name=substr(@date,1,4)+substr(@date,6,2)+substr(@date,9,2)+"_"+substr(@time,1,2)+substr(@time,4,2)+substr(@time,7,2)+$_debug_temp_name+"_"+Rnd() IF (len($_debug_temp_name) < 25) $_debug_temp_name=substr($_debug_temp_name+" ",1,25) ENDIF IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0) IF (len(@scriptname) < 12) $_debug_temp_name=$_debug_temp_name+" "+substr(@scriptname+" ",1,12) ELSE $_debug_temp_name=$_debug_temp_name+" "+@scriptname ENDIF ENDIF ENDIF
IF ("$_debug_already_starting" <> "yes") ? "-debug file: "+$_debug_file ? "-debug name: "+LCASE($_debug_temp_name) ELSE IF (len($_debug_temp_name) <> 0) ? "-debug: "+LTRIM(RTRIM(LCASE($_debug_temp_name)))+" -> "+$_debug_file ELSE ? "-debug-file: "+$_debug_file ENDIF ENDIF
IF (instr("-3.6x-","-"+substr(@kix,1,3)+"x-") = 0) AND (Val(substr(@kix,1,1)) < 4) GOTO _debug_starting_point ENDIF DIM $_debug_name ; -create local variable- :_debug_starting_point $_debug_name=LCASE($_debug_temp_name) $_debug_already_starting="yes" ? "-" ?"----- start-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 1-"+@time+"-"+$_debug_name+"- @error @serror"? ? " homedir = "+@homedir ?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? ? " homedrive = "+@homedrive ?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? ? " homeshr = "+@homeshr
?"------- end-"+@time+"-"+$_debug_name+"- @error @serror" ? "-" ? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/4.00e script ending" IF (Val(substr(@kix,1,1)) >= 4) IF (len(@scriptname) <> 0) " ("+LCASE(@scriptname)+")" ENDIF ENDIF ? "-" IF RedirectOutput("CON") ENDIF COLOR C+/N ? ? "Informative KIX "+@kix+":"+" debug info see "+CHR(34)+$_debug_file+CHR(34) IF (Val(substr(@kix,1,1)) >= 4) IF (len(@scriptname) <> 0) " ("+LCASE(@scriptname)+")" ENDIF ENDIF IF RedirectOutput($_debug_file) ENDIF ;($begin) ; ; thu 27-feb-2003 02:02:13 (kix 4.20 vs 4.00e) ; ;Informative KIXSTRIP: no errors found (input=3 output=3 skip=0). ; ;Summary KIXSTRIP: block structures ; - do:until [0:0] ; - for|each:in|to:step|next [0|0:0|0:0|0] ; - function:endfunction [0:0] ; - if:else:endif [0:0:0] ; - select:case:endselect [0:0:0] ; - while:loop [0:0] ;Informative KIXSTRIP: no block_structures found. ;Informative KIXSTRIP: no UDF's found. ;Informative KIXSTRIP: no labels found. ;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE ; ;($end)
greetings.
|
Top
|
|
|
|
#36977 - 2003-02-27 03:48 PM
Re: Bug in KiXtart 4.20 with @HOMESHR
|
Bobby Chan
Fresh Scripter
Registered: 2002-02-07
Posts: 28
Loc: Montreal, Quebec, Canada
|
I think I found the problem. By default, I copied over KX16, KX32 and KX95.dll. In the manual, it does point out that if KX95.DLL exists without KXRPC.EXE, it might cause performance problems. This is what I am seeing. When our script gets to the point where it queries the network, it just stalls there and KiXtart quits. It is weird because sometimes it works and sometimes it doesn't. On affected machines, I have removed KX95.DLL and the script seems to run fine.
I have tried to run the attached script on Win9x machines and I can't seem to redirect the output to a text file. I will have to find time to modify the code to put it into a text file and get back to you guys.
|
Top
|
|
|
|
#36981 - 2003-02-27 04:39 PM
Re: Bug in KiXtart 4.20 with @HOMESHR
|
Bobby Chan
Fresh Scripter
Registered: 2002-02-07
Posts: 28
Loc: Montreal, Quebec, Canada
|
Sealeopard: Definitely too much work!
I will have to check out and plan the install of the KiXtart RPC Service on our 3 DCs if it means that it would solve our problems. It is funny that KiX worked without the service when we were on 3.62 and partially works on 4.20.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 201 anonymous users online.
|
|
|