Page 1 of 1 1
Topic Options
#171890 - 2006-12-21 09:19 PM Calling all noobies
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Okay everyone... You can post and ask questions or just say hi. We have almost 12,000 registered users and less than 30 that actively post.

Go ahead - don't be shy, everyone is in a good mood so ask your questions

We have some members that have been on the board longer than myself and yet only post about once or twice a year, come on guys you can do better than that.

Top
#171910 - 2006-12-22 09:58 AM Re: Calling all noobies [Re: NTDOC]
maxix Offline
Lurker

Registered: 2006-12-19
Posts: 3
Hm ok Admin \:\) I do as commanded :))

I need a small Kixline that log's the User/Machine in a logfile:
/netlogon/log/username.machine
i.E: maxix.sueme (within the File the time: 200623120959

And now for something completly different:

merry xmas \:\)

kind regards
maxix
_________________________
MfG Max

Top
#171911 - 2006-12-22 10:14 AM Re: Calling all noobies [Re: maxix]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Originally Posted By: maxix

....
I need a small Kixline that log's the User/Machine in a logfile:
/netlogon/log/username.machine
i.E: maxix.sueme (within the File the time: 200623120959
....


Something like this?

Code:
Break on

$rc = Open(1,"\\server\netlogon\log\" + @USERID + "." + @WKSTA, 5)
$rc = WriteLine(1, @USERID + " is using " + @WKSTA + @CRLF)

$rc = Close (1)


to all.


Edited by Mart (2006-12-22 10:15 AM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#171912 - 2006-12-22 10:16 AM Re: Calling all noobies [Re: maxix]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Here is one way:
Code:
$=RedirectOutput(@LSERVER+"\netlogon\log\"+@USERID+"."+@WKSTA,1) @DATE+"."+@TIME $=RedirectOutput("")


Note, you cannot normally write to the netlogon share, for very good reasons. It's not something that I would recommend.

You can remove the delimiters from the date / time if you wish by using the Join(Split()) technique (ask if you get stuck)

Change the ",1" to ",0" if you want to append to the file rather overwriting it each time.

There might be a better format for the data - when you post requests for help you should also describe *why* you are trying to do the task. Sometimes we will be able to provide you with a more robust alternative that you might not have considered. If we don't know what the background to the request is we can't help you as much as we'd like.

Top
#171913 - 2006-12-22 10:43 AM Re: Calling all noobies [Re: Richard H.]
maxix Offline
Lurker

Registered: 2006-12-19
Posts: 3
makes sense.
ok it's a Linux Server with smb I'am running.
I just try to get familiar with kix, so I thougt it would be a "nice to have" to get all logged in users from my windows Workstation (*sigh* yes, i know. But I have to use windows Clients)

For example: I open a share (whereever) look into it and see:

John.pc01 2006.12.23 9:15
Jack.pc02 2006.12.23 9:40
Harry.pc03 2006.12.22 12:30

I will now take a look into the two solutions you two just so kindly provided.

*looks into it*

Thanks for your patience

maxix
_________________________
MfG Max

Top
#171916 - 2006-12-22 12:12 PM Re: Calling all noobies [Re: maxix]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Going off-topic here.

Maxix, please continue the conversation in this thread:
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=171915&page=0#Post171915

Top
#172168 - 2006-12-29 01:59 PM Re: Calling all noobies [Re: Richard H.]
BerndNowak Offline
Lurker

Registered: 2005-05-19
Posts: 1
Loc: Germany
Hi everyone. I use kixtart frequently but found most solutions just by searching here.

A big thanks for the software and all the help I found here \:\)

Top
#172170 - 2006-12-29 02:10 PM Re: Calling all noobies [Re: BerndNowak]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Hi BerndNowak, and welcome to the board.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#172172 - 2006-12-29 03:40 PM Re: Calling all noobies [Re: Benny69]
eriqjaffe Offline
Hey THIS is FUN

Registered: 2004-06-24
Posts: 214
Loc: Arlington Heights, IL USA
Personally, I use these boards more as a big, live, extension to the documentation - if I can't figure out something through that, then I come here and search around until I find an answer...it's amazing how many of my questions have already been answered.

The small percentage of the board members that post all the time are a tremendous resource, even if I rarely ask my own questions, or answer the questions of others.

Thanks for all the help I've leeched from you guys over the years. \:\)

Top
#172361 - 2007-01-04 09:41 AM Re: Calling all noobies [Re: eriqjaffe]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
the threads are my daily soaps, I watch all the time ;\)
Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 675 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.11 seconds in which 0.075 seconds were spent on a total of 13 queries. Zlib compression enabled.

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