Re: task scheduler
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 20 Sep 2006 22:16:02 +1000
Never ever retype the contents of a batch file for a post -
always use copy & paste. I do not wish to spend my
time sorting out typographical errors.
"don" <don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AE7855A2-D47B-43DF-AA93-D95EA76D4F06@xxxxxxxxxxxxxxxx
The batch file does work, when it was run seperately at 2 am,3 am,4 am,5am,6
am, we could see 5 seperate tasks running (in the foreground). Now that weclasspath=C:\j2sdk1.4.2_04\jre\lib\security\US_export_policy.jar;%classpath%
changed the scheduler to start it at 2 am and to run it every hour for 5hr
59m, i only see one entry in the text file created by the echo command and
that's for 2:00 am. When I sent you a copy of the batch file i might have
screwed up the syntax, but the batch file does run. I will try test using
your latest suggestion and see what happens.
Thanks...
--
Don
"Pegasus (MVP)" wrote:
There are some problems with your batch file.
1. The very first line is wrong. Instead of reading
@echo offrem SCT Payment Client Startup for Banner Webrem AUDIT TRAIL:
it should read:
@echo off
rem SCT Payment Client Startup for Banner Webrem AUDIT TRAIL:
2. The lines
set
classpath=C:\j2sdk1.4.2_04\jre\lib\security\US_export_policy.jar;%classpath%make no sense. It should probably be one single line:
set
entry
3. The lines
java -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
com/sctcorp/ges/cc/SCTPaymentClient
must be joined in your batch file. I cannot tell if they are because my
newsreader wraps them. Make sure that "com/" is on the same line
as "protocol".
To find out what trips up your batch file, modify it like so:
@echo off
rem SCT Payment Client Startup for Banner Webrem AUDIT TRAIL:
echo %date% %time% >>c:\payment_client_is_running.txt
goto :eof
{Leave the other lines here}
Run it, see if it works, then move the line "goto :eof" a few lines
further down. Eventually the batch file will fail and you will know
the culprit.
"don" <don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9181A6AA-015A-43D7-8DDB-CFA47CA55739@xxxxxxxxxxxxxxxx
When i run the job 'echo %date% %time%
c:\payment_client_is_running.txt'and i schedule it to run every minute for 10 minutes, it creates an
batchin
the .txt file each time it runs. If i put this same statement in the
onlyfile I'm trying to run every hour for 5 hours starting at 2:00am, it
CLASSPATH=%CLASSPATH%;D:\app\sct\ssb\LCCC\java\SctPaymentClient.jarputs one entry in the .txt when it starts up. This is the batch file:
@echo offrem SCT Payment Client Startup for Banner Webrem AUDIT TRAIL:
echo %date% %time% >>c:\payment_client_is_running.txt
rem Touchnet jar - for TouchNet customers
set CLASSPATH=D:\app\sct\ssb\LCCC\java\SCTTransactor.jar
rem SCT Payment Client Jar - everyone
set
classpath=C:\j2sdk1.4.2_04\jre\lib\ext\sunjce_provider.jar;%classpath%
rem Oracle jar - contains JDBC drivers - everyone
set classpath=D:\9iAScore\1.0.2.2.2\jdbc\lib\classes12.zip;%classpath%
rem Java JCE Jar - everyone
set classpath=C:\j2sdk1.4.2_04\jre\lib\jce.jar;%classpath%
set
classpath=C:\j2sdk1.4.2_04\jre\lib\security\US_export_policy.jar;%classpath%setclasspath=C:\j2sdk1.4.2_04\jre\lib\security\local_policy.jar;%classpath%
set
java -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
rem Java JSSE Jar - for Epos and iPayment customers
set classpath=d:\java\jsse1.0.2\lib\jcert.jar;%classpath%
set classpath=d:\java\jsse1.0.2\lib\jnet.jar;%classpath%
set classpath=d:\java\jsse1.0.2\lib\jsse.jar;%classpath%
gettingcom/sctcorp/ges/cc/SCTPaymentClient
Do you see anything that would indicate why the .txt file is only
createdone entruy??
--
Don
"Pegasus (MVP)" wrote:
Check the Windows Task Scheduler. It tells you exactly which
jobs are currently running, when a job last ran and when it will
run again. Make sure to get the "Details" view on your screen.
"don" <don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:64BE78BE-B6DE-40A0-B7A1-C057623DB592@xxxxxxxxxxxxxxxx
I scheduled the bath job as you suggested and it worked. I had
2:00am,one
similar to it to run the job every 1 hour for 5:59 starting at
runwhich
worked up until saturday and then it quit. So maybe i told it to
rundaily
instead of every 1 day, in any case i created a brand new job to
theevery
1
day to start at 2:00am for a duration of 5hr and 59 mins. Since
isjob
runs
in the background can you suggest aa way that i can see if the job
seeWhenrunning
when i come in, in the morning.
--
Don
"Pegasus (MVP)" wrote:
What is your question?
Did you schedule the batch file I suggested?
What happened?
Task that run under the Task Scheduler are designed
to run in the background and are designed to be
invisible to the foreground question.
"don" <don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FFD97894-8784-4507-BFA5-A0A383028DFC@xxxxxxxxxxxxxxxx
When you run a batch job, it shows up on the windows task bar.
you
run
it thru the scheduler does it also show up on the task bar? I
executionsmstask.exe
running and when I open the dos window i see multiple
likeof
the
batch
file I want to run.
--
Don
"Pegasus (MVP)" wrote:
You're obviously missing a few steps. Create a batch file
24so:
@echo off
echo %date% %time% >> c:\test.txt
then do this to run it once every 5 minutes:
1. Control Panel / Task Scheduler
2. Add Scheduled Task.
3. Specify the name of the above batch file.
4. Give the baby a name.
5. Select the "Daily" radio button.
6. Set the time to 0:00, and select "Every Day".
7. Enter the account details.
8. Click "Advanced properties" + Finish
9. Click "Schedule".
10. Click "Advanced".
11. Repeat the task every 5 minutes, and make the duration
Ihours.
Now check c:\test.txt and convince yourself that the task
does run every 5 minutes. When it works as expected,
apply the above methods to your own batch files.
"don" <don@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:77808602-7D1E-453C-B5BE-2BA110D958FE@xxxxxxxxxxxxxxxx
After making the changes that you suggested, nothing runs.
created aused
one
of
the
old jobs and made the changes you suggested. Then i
filebrand
new
job
and the only thing I see running is MTTask.exe.
Don
"don" wrote:
We are using window2003 scheduler to run the same batch
schedule.at
2:00a
3:00am,4:00am,5:00am, 6:00am and 7:00am on a daily
days.The
schedule
task = daily, start time =1:35am on 8/2/2004, every 1
startoption.Under
settings we
have stop task if runs for 72 hrs, no advanced schedule
come inThis
process
works every day of the week except Sunday night. When we
on
Monday
none of the scheduled tasks are running and we have to
touchnetscriptsthem
manually. I
don't know fi it means anything but the scripts are java
(payment
clients) that create a transaction path between our
on-linepayment
gateway
and our e.r.p system. This allows students to pay
at
predecessoranytime of
the
day.It's been running like this since 8/2/2004, my
couldn't
figure out why the jobs don't run Sunday night.
Any suggestions would be appreciated.
--
Don
.
- References:
- Re: task scheduler
- From: Pegasus \(MVP\)
- Re: task scheduler
- From: don
- Re: task scheduler
- From: Pegasus \(MVP\)
- Re: task scheduler
- From: don
- Re: task scheduler
- From: Pegasus \(MVP\)
- Re: task scheduler
- From: don
- Re: task scheduler
- From: Pegasus \(MVP\)
- Re: task scheduler
- From: don
- Re: task scheduler
- Prev by Date: Used BootVis now Can't Boot Up.
- Next by Date: Re: Used BootVis now Can't Boot Up.
- Previous by thread: Re: task scheduler
- Next by thread: Re: task scheduler
- Index(es):