Page 1 of 1 1
Topic Options
#37140 - 2003-02-28 06:07 PM Script won't run for 1 particular user
confused Offline
Lurker

Registered: 2003-02-28
Posts: 2
The kixtart script will not run for a particular user at my site.

The BAT file in my Login Script Profile section is executing. When a kixtart script for this user is being reference, nothing happend. I put a couple of AT (x,x) and get$ to see if I could see where it was holding up, but it never even executes the first line of code. It only happens to one user. I checked all of his rights and group memberships. They seem to match my other users.

Do the whole script have to run through before anything will be displayed.

TIA

Top
#37141 - 2003-02-28 06:08 PM Re: Script won't run for 1 particular user
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
That indicates that the script is not even executed. Without the batch file and the script we won't be able to help you, though.

Does the script work from the command line?
_________________________
There are two types of vessels, submarines and targets.

Top
#37142 - 2003-02-28 06:31 PM Re: Script won't run for 1 particular user
confused Offline
Lurker

Registered: 2003-02-28
Posts: 2
Here is a snippet for the main .BAT file. This code is running ok.

:WINNT
REM Windows NT/2000 workstation
kix32.exe nypa.kix
goto END

When the nypa.kix file is referenced, nothing happens. I tried to put a couple of command in nypa.kix to see if it was being called, but I couldn't see anything.

I tried to put a command at the top,but nothing showed up.

;***********************************************************
; nypa.kix (formerly kixtart.scr)
;
;
;
;***********************************************************
; Put users in the "Domain Diag" global group to
; display troubleshooting info
;***********************************************************
;

If INGROUP("Domain Diag")
CALL @ldrive + "diag.kix"
Endif

;***********************************************************
; The following section is for all users in the domain.
; DO NOT EDIT THIS SECTION unless all LAN admins have agreed
; on the change, and it has been tested and approved by WPO
;***********************************************************
;
If INGROUP("Domain Users")

;Greet the user based on the time of day
$fn = @FULLNAME
$cm = InStr($fn,",")

.
.
.

Top
#37143 - 2003-02-28 08:04 PM Re: Script won't run for 1 particular user
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Try looking in the user manager for this client. Checkout what script is being called.
_________________________
Jack

Top
#37144 - 2003-02-28 08:33 PM Re: Script won't run for 1 particular user
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Is it just one user on one computer or one user on any computer?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#37145 - 2003-02-28 10:29 PM Re: Script won't run for 1 particular user
MCA Offline
KiX Supporter
*****

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

First some questions:
- which client/server combination running?
- where are the scripts located? netlogon or another directory?
- what is the different with the other users? others running another OS/
- are there specific elements on this client?
- it look likes your BATch file isn't presented in a full way. please put the complete BATch on the board.
- also we see only a part of your script. please put it also to get full feedback.

We add some debugging code to your script. It was done by our tool kixstrip, which
you can find our site (f.e. "Summary of Site" page).
With the call: kixstrip input.kix output.kix /debug
we did it.

Please modify in this specific case your BATch file to
code:
@echo off
%0\..\kix32.exe %0\..\nypa-debug.kix
@echo off

Please 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"? ;***********************************************************
?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? ; nypa.kix (formerly kixtart.scr)
?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? ;***********************************************************
?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? ; Put users in the "Domain Diag" global group to
?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"? ; display troubleshooting info
?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"? ;***********************************************************
?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Domain Diag")
?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"? CALL @ldrive + "diag.kix"
?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? ;***********************************************************
?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"? ; The following section is for all users in the domain.
?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"? ; DO NOT EDIT THIS SECTION unless all LAN admins have agreed
?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? ; on the change, and it has been tested and approved by WPO
?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? ;***********************************************************
?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? ;
?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Domain Users")
?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? ;Greet the user based on the time of day
?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"? $fn = @fullname
?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? $cm = InStr($fn,",")
?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 28-"+@time+"-"+$_debug_name+"- @error @serror"?

?"------- 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)
;
; fri 28-feb-2003 22:10:56 (kix 4.20 vs 4.00e)
;
;Informative KIXSTRIP: input=28 output=28 skip=0
;
;Warning KIXSTRIP: 1 error in block structure. missing statement(s).
; - do:until [0:0]
; - for|each:in|to:step|next [0|0:0|0:0|0]
; - function:endfunction [0:0]
; -ERROR- - if:else:endif [2:0:1]
; - select:case:endselect [0:0:0]
; - while:loop [0:0]
;Warning KIXSTRIP: some lines contains errors or possible errors.
;Informative KIXSTRIP: 2 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
;Informative KIXSTRIP: 1 CALL
;
;($end)

(btw: above problem was fix with our modification in 27th line)

Please run it and return output to the board.
greetings.

btw: symbol  - on our pages has been linked to related http://kixtart.org topic.
_________________________
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
#37146 - 2003-09-12 03:51 PM Re: Script won't run for 1 particular user
Luziekix Offline
Getting the hang of it

Registered: 2003-02-27
Posts: 68
Hi,

we have the same problem here.

Iīm spare in writing time, so I make it for short:

Script wonīt run for this one user on NT4-Domain
(NT4-Workstation, NT4-Logon-Server, KIX v4.20 FINAL), no matter on which workstation he logs on.

Other users can log on without any error onto the same machines.

Seems no matter of the user-profiles on the machine.

Itīs bad the original poster havenīt answered he.

The script just shows a black windows with an script-error for parts of a second "Unknown command".

Luziekix

Top
#37147 - 2003-09-12 05:06 PM Re: Script won't run for 1 particular user
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Please do NOT hijaak someone else's thread.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#37148 - 2003-09-12 08:58 PM Re: Script won't run for 1 particular user
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
You really should start a new post. Try looking in the user manager. Is there anything different about this user? Also, MCA offered a check list - did you go through it?
_________________________
Jack

Top
#37149 - 2003-09-15 10:35 AM Re: Script won't run for 1 particular user
Luziekix Offline
Getting the hang of it

Registered: 2003-02-27
Posts: 68
It was wished by the moderaters that I start a new Thread about it ...

... so please go on to:

http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=007819

Luziekix

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 472 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.064 seconds in which 0.029 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