Page 1 of 1 1
Topic Options
#25389 - 2002-07-18 07:00 PM @homeshr causing script processing to terminate
Gene Lawin Offline
Lurker

Registered: 2002-07-18
Posts: 3
If a home directory is not defined for a user (some don't need it) when any line which references the @homeshr macro is executed the script processing terminates.

Searched the forums for an answer but didn't come up with one. Sorry if there is an obvious fix.

Tried surrounding the code with an if statement (if @homeshr) but this line also terminates the processing. Was hoping that in the event that a home directory wasn't defined for a user the @homeshr would return a null value or 0.

This only occurs on Win9x machines (I don't need it for NT/2000/XP machines) and I downloaded the most current version of kixtart (4.10) to test for problem resolution.

Thanks for your help...Gene

Top
#25390 - 2002-07-18 07:29 PM Re: @homeshr causing script processing to terminate
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
has the clients the dlls on the system?
also, are the dll's correct version?
are you running kxrpc on your DCs?
is it from 4.10 build 99 too?

this just that win9x due to lack of networking support needs these files.

also, as you said you have got the latest kix-version, but verify that it is not 4.10 build 98 but build 99

build 98 had macro issue in it.

cheers,
_________________________
!

download KiXnet

Top
#25391 - 2002-07-18 08:47 PM Re: @homeshr causing script processing to terminate
Gene Lawin Offline
Lurker

Registered: 2002-07-18
Posts: 3
Yes, rpc is installed and running at each DC (version that came with build 99)...and the dll's are available (ingroup works for example).

All kixtart files are loaded from the netlogon directory including the service running at the DC's because kxrpc.exe is installed from that directory...that makes it easy for me to keep everything in sync. I update the netlogon directory...stop and restart the kxrpc service at each DC and I've completed the upgrade process.

This was failing with an earlier version (4.0) so I upgraded to see if the 'problem' (and I don't know that it is a problem) was changed.

Ran the script in debug mode and everytime I hit the @homeshr macro (in an if statement or in a use command) the script stops processing (doesn't lock up...just skips the rest of the logon script file)

This only happens if the @homeshr should return a null value. Everything works fine if the user has a home directory assigned in AD...the @homeshr returns the correct value and the script continues executing.

Thanks again...Gene

Top
#25392 - 2002-07-18 08:54 PM Re: @homeshr causing script processing to terminate
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
gene, I dont use the kxrpc service, but doesn't it need to be issued -install?

and then, could you try changing your code a little.

where it has the:
if @homeshr
change it to:
if exist(@homeshr)

if this does not help, there might be something worthwhile for farther error tracing (in english, possibility of bug).

cheers,
_________________________
!

download KiXnet

Top
#25393 - 2002-07-18 09:00 PM Re: @homeshr causing script processing to terminate
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
if you just run this piece of code
code:
if @homeshr
? 'homeshare defined as '+@homeshr
else
? 'homeshare not defined'
endif
?''+@ERROR+' - +@SERROR

as a separate file to test it, does the processing still stop?
_________________________
There are two types of vessels, submarines and targets.

Top
#25394 - 2002-07-18 09:55 PM Re: @homeshr causing script processing to terminate
Gene Lawin Offline
Lurker

Registered: 2002-07-18
Posts: 3
Not sure why...but now the if @homeshr is working (swore it wasn't before). I also tried the if exist(@homeshr) and that also worked. Actually I tried the if exist(@homeshr) first and got it to work and then went back to retest the if @homeshr and it also now works.

Only difference on machine (same machine for testing) was that when the @homeshr stopped the processing if null IE 5.0 was loaded (fresh Win98SE install). By the time I was ready to test the if exist(@homeshr) and if @homeshr I had IE 6.0 loaded.

Of course the original problem I had it still that the following command...

use s: @homeshr

terminates processing if the user doesn't have a home directory in the AD profile.

I use the if @homeshr now to work around it...for example

if @homeshr ;if exist(@homeshr) also works here
use s: @homeshr
endif

Fixed now...thanks for your help.

Gene

Top
#25395 - 2002-07-21 11:58 AM Re: @homeshr causing script processing to terminate
MCA Offline
KiX Supporter
*****

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

That scripts can abort with impossible USE statements isn't documentating very well.
To prevent abortion of your script you use always something like
code:
USE x: \\server\share
IF (@error <> 0)
? "Warning KIX-MAP: error @error (@serror)
ENDIF

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
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.057 seconds in which 0.026 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