Re: Windows 2003 Scheduler hangs

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

charlie.bursell_at_quovadx.com
Date: 01/15/05


Date: 15 Jan 2005 15:54:10 -0800


Pegasus (MVP) wrote:
> <charlie.bursell@quovadx.com> wrote in message
> news:1105813483.887807.315830@f14g2000cwb.googlegroups.com...
> > Please a little help for a Unix dweeb that knows little or nothing
> > about Windows, especially Windows 2003.
> >
> > I have a batch file that is run every 10 minutes via the scheduler.
> > This batch file also calls a Tcl script. Periodically, the
scheduler
> > will hang and not exit. It does this maybe twice a day. I noted
when
> > this first began to happen that the command window from svchost
would
> > also stay up. I changed the scheduler and told it to exit the
routine
> > if it was still running after 2 minutes. Now the window does go
away
> > but the instance of Tcl and svchost remains. The scheduler kills
the
> > batch file but not the svchost.exe or tcl.exe instances. Therefore
> > files that the Tcl script were accessing are still locked to that
> > instance and subsequent runs fail since the new run cannot access
the
> > files.
> >
> > Any ideas? Is it possible, like Unix, to run the batch script in
the
> > background so that the command window does not come up every time
it
> > runs?
> >
>
> - Is it the Task Scheduler that hangs, or the task that is invoked by
> the scheduler?
> - To run the task invisibly, did you try scheduling it under an
> account other than your own?

Not sure which. It looks like svchost hanging. I know it gets all the
way through the Tcl script. I prove that by writing debug statements
to a file. It does not seem to get back to the batch file however.
The final statement in the batch script is:
call tcl -f myscript
As I said the Tcl script is executing all the way through.
I haven't tried running it as another user. I'll try that next.



Relevant Pages

  • Re: Windows 2003 Scheduler hangs
    ... >> the scheduler? ... I prove that by writing debug statements ... It does not seem to get back to the batch file however. ... > As I said the Tcl script is executing all the way through. ...
    (microsoft.public.windows.server.general)
  • Re: Daily backup fails to run after first day
    ... because the scheduled job runs once but fails the ... Prompt as under the Task Scheduler? ... There's no need to run batch file. ... >> examine the two log files each time. ...
    (microsoft.public.windows.server.general)
  • Re: task scheduler
    ... When I sent you a copy of the batch file i might have ... @echo offrem SCT Payment Client Startup for Banner Webrem AUDIT TRAIL: ... rem SCT Payment Client Startup for Banner Webrem AUDIT TRAIL: ... Task that run under the Task Scheduler are designed ...
    (microsoft.public.windowsxp.general)
  • Re: Task Scheduler Fails, But Not All the Time
    ... into the batch file below, ... echo %date% %time% Start of task> c:\test.log ... Now examine the two log files. ... In most Task Scheduler posts the ...
    (microsoft.public.windowsxp.general)
  • Re: Cant schedule a batch file to run in the XP Pro Scheduler
    ... Also look in Explorer and right-click the BAT file itself and check that all ... > a shortcut on the desktop or from the command window directly. ... > does NOT run fine is when I try to call the backup.bat batch file ... Why doesn't the XP task scheduler handle batch files? ...
    (microsoft.public.windowsxp.perform_maintain)