Re: Problem with locked log file produced by batch file



Hi,

My guess for the day is that your previous schedule is still running
(and perhaps you don't auto terminate it if required). "Process
Explorer" might be quite useful to examine the running processes.

Bye,
Dennis


Ragnar Midtskogen wrote:
Hi,

I have set up backups on all of our servers, running batch files by using
Windows Scheduled Tasks.
I redirect the output from the batch file to a log file.
A couple of times recently I have found that the Scheduled Task ran but the
batch file didn't. The log file was not even opened.
I have no idea what caused the log file to be left in a state like that, but
the last thing the batch file does is to FTP the backup file to another
server, so my guess is that it could be a dropped FTP connection. I have no
error handling for the FTP code.
I finally found that the log file was locked. I tried to delete it but got
the message that the file was in use.
BTW, The ST runs the batch file as the same user as I log on to the server
with (Through Terminal Server client).

Is there a way to free the file, short of rebooting the server?

Any help would be appreciated.

Ragnar

.



Relevant Pages

  • Re: 2003 sbs clients
    ... You can create a batch file in a shared directory at the server as below, ... Be sure you don't schedule this at the SERVER. ... GROUP POLICY to run the script that copies the task, ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem with locked log file produced by batch file
    ... Windows Scheduled Tasks. ... I redirect the output from the batch file to a log file. ... The ST runs the batch file as the same user as I log on to the server ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Problem with locked log file produced by batch file
    ... Windows Scheduled Tasks. ... I redirect the output from the batch file to a log file. ... The ST runs the batch file as the same user as I log on to the server ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: NTBackup will not schedule.
    ... >> tried to create a NTbackup job from Remote Desktop, ... I also tried scheduling a Server Reboot ... > server I create a batch file then schedule the batch file to run ...
    (microsoft.public.windows.server.general)
  • Re: email from command prompt
    ... I don't see any options to attache a file with mailto--thanks. ... >>> not have to login remotely to the server to check the status of the ... >>> .log file to my email address, and then I will schedule it with Scheduled ...
    (microsoft.public.windows.server.sbs)