Login Script - log files overwritten

From: John (anonymous_at_discussion.microsoft.com)
Date: 03/01/04


Date: Mon, 1 Mar 2004 05:45:46 -0800

I have a script (cmd file) is being called from the login
script. If a condition is met the computer name is
written to a log file housed on a share. Users have
rights to write to the file but not delete. The problem
is randomly (once or twice a week) the log file is being
overwritten. I have seen happen with different script(s)
and different log files.

An example of the syntax in the script(s) is below:

echo %COMPUTERNAME% >> \\servername\share\logfile

ideas? Two users writing to the file at the same time ?

thanks



Relevant Pages

  • Re: Need help: perl script to FTP
    ... > On the game server is log file which contains all of the data from the ... > on my webserver, which is supposed to login to the gameserver and download ... The &sendsubroutine doesn't exist in your script. ...
    (perl.beginners)
  • Re: Need help: perl script to FTP
    ... > On the game server is log file which contains all of the data from the ... > on my webserver, which is supposed to login to the gameserver and download ... The &sendsubroutine doesn't exist in your script. ...
    (comp.lang.perl)
  • Re: unix shell script ignores exit when in function that is piped to tee
    ... > I thought calling a function within a script did NOT create sub-shells. ... is going to be able to alter the log file to cover up any inappropriate ... entry in the log to the previous entry. ... The easiest way to use crypt to ...
    (comp.unix.shell)
  • The necessity of Setting Objects to Nothing
    ... But what happens when you've got a script that is running as ... Dim Servers, List, strComputer ... Set Folder = objFSO.GetFolder ... '~~~ Write the results of the number of users query to a log file. ...
    (microsoft.public.scripting.vbscript)
  • Re: CSVDE Importing
    ... > specify the log file path via the -j option. ... CSVDE imports can only be used to create new users ... Unfortunately, the syntax is a bit more involved than a simple csv file, ... which makes it a little more difficult to manage its content via script. ...
    (microsoft.public.windows.server.scripting)

Loading