Re: Scheduled tasks don't end
- From: "Bill" <stanton@xxxxxxx>
- Date: Tue, 21 Nov 2006 19:03:47 GMT
As you can see from the "test log", I couldn't get the
bat file to run directly.
ShortTestJob.bat: ==========================
Line1 @echo off
Line2 echo %date% %time% Start of task > c:\test.log
Line3 echo User=%UserName%, Path=%path% >> c:\test.log
Line4 "c:\Program Files\WINZIP\WINZIP32.EXE /autorunjobfile"
"C:\BackUpJobs-WinZip\ShortTestJob.wjf"
Line5 1>>c:\test.log 2>>&1
Line6 echo ErrorLevel of winzip=%ErrorLevel% >> c:\test.log
Line7 echo %date% %time% End of task >> c:\test.log
======================================
Resulting test.log: ==========================
'Line5' is not recognized as an internal or external command,
operable program or batch file.
======================================
If I run it from "scheduled", I just get a DOS prompt
from the directory c:\Windows\system32> where the
scheduled job was:
C:\WINDOWS\system32\cmd.exe "c:\ShortTestJob.bat"
(fails with or without the quotes)
"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:OiRdfUSDHHA.3212@xxxxxxxxxxxxxxxxxxxxxxx
Fine. Now instead of invoking this command directly, invoke
the following batch file under the Task Scheduler:
Line1 @echo off
Line2 echo %date% %time% Start of task > c:\test.log
Line3 echo User=%UserName%, Path=%path% >> c:\test.log
Line4 "c:\Program Files\WINZIP\WINZIP32.EXE /autorunjobfile"
"C:\BackUpJobs-WinZip\Apps-1-Mon.wjf"
Line5 1>>c:\test.log 2>>&1
Line6 echo ErrorLevel of winzip=%ErrorLevel% >> c:\test.log
Line7 echo %date% %time% End of task >> c:\test.log
Schedule the job, then examine c:\test.log. I suspect that Winzip
starts but never ends because it is waiting for some user input.
"Bill" <stanton@xxxxxxx> wrote in message
news:fKu8h.1585$ql2.1406@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
C:\PROGRA~1\WINZIP\WINZIP32.EXE /autorunjobfile
"C:\BackUpJobs-WinZip\Apps-1-Mon.wjf"
"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:u6DVoyRDHHA.4464@xxxxxxxxxxxxxxxxxxxxxxx
"Bill" <stanton@xxxxxxx> wrote in message
news:tBt8h.1385$sf5.862@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Along with creating a WinZip backup job, I scheduled
the job to run at a specified day and time. As part of
the job creation, I, of course, run the job to insure that
it zips the correct files and that the resulting zip file is
as specified.
Then, to insure that the scheduled task is also in order
with proper password authority, etc., I "Run" the task.
The MS XP Home SP2 system shows the task "running",
but it never ends. The Winzip log shows no irregularities
when run directly, so there must be something amiss
with the task scheduler. All of the Norton tasks seem to
run okay, but like I said, the Winzip jobs don't end.
Prior to using Winzip for backups, I using Stomp's
BackUpMyPC on the same offending system with the
same results, i.e., the job simply never ends.
Any ideas what might be causing all of this???
Thanks,
Bill
You write "there must be something amiss with the
task scheduler". This is extremely unlikely. It is far
morel likely that there is something wrong with your
job, and this is what you should concentrate on.
As a first step, please post the exact command line
you're running with the Task Scheduler. Without this
line we can only guess where the problem lies.
.
- Follow-Ups:
- Re: Scheduled tasks don't end
- From: Pegasus \(MVP\)
- Re: Scheduled tasks don't end
- References:
- Scheduled tasks don't end
- From: Bill
- Re: Scheduled tasks don't end
- From: Pegasus \(MVP\)
- Re: Scheduled tasks don't end
- From: Bill
- Re: Scheduled tasks don't end
- From: Pegasus \(MVP\)
- Scheduled tasks don't end
- Prev by Date: Re: Error message in XP Home
- Next by Date: Re: [OT] Ping No Stop
- Previous by thread: Re: Scheduled tasks don't end
- Next by thread: Re: Scheduled tasks don't end
- Index(es):
Relevant Pages
|
Loading