[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[IDV #XWY-365129]: Help with windows scheduler executing bat file
- Subject: [IDV #XWY-365129]: Help with windows scheduler executing bat file
- Date: Tue, 17 May 2011 15:13:17 -0600
Chris,
Next experiment:
Delete mylog.log in case it is left around from before. Then try
jre\bin\java -Xmx512m -Didv.enableStereo=false -jar idv.jar nz-gfs.isl >>
mylog.log 2>&1
and tell me what you see in the log file.
After you try that, I would bump up the memory quite a bit, perhaps to
-Xmx1500m.
-Julien
> Hi Julien,
>
> When executed directly the output is:
>
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
>
>
> Regards Chris.
>
>
>
> On 18 May 2011 06:48, Unidata IDV Support <address@hidden>wrote:
>
> > Hi Chris.
> >
> > As a control experiment, what if you replace your invocation of the IDV to
> >
> > jre\bin\java -version >> mylog.log 2>&1
> >
> > This should output the java version to mylog.log
> >
> > This experiment will be able to tell us if this is a Java problem or an IDV
> > problem. Both standard output and standard error will end up in mylog.log.
> >
> > What is in mylog.log?
> >
> > -Julien
> >
> > > Yes, and it's not overly helpful. When I run the task on demand it says
> > > running and then complete with normal looking history entries as
> > attached.
> > > If I add simple test code either side of the java execution line and
> > > manually re-trigger the scheduled task I can see that code extra code
> > works,
> > > but not the " jre\bin\java..." line. It's as if it ignores it, or thinks
> > it
> > > has done it but nothing happens.
> > >
> > > I'm wondering if I need to specify anything extra in terms of variables
> > or
> > > classes, or whether it's a permissions thing, say java is preventing
> > itself
> > > being run this way...? I have elevated folder permissions for the IDV
> > > install directory with no effect.
> > >
> > > As I understand, it should be possible to schedule, afterall the bat
> > works
> > > fine when executed directly.
> > >
> > >
> > > Regards, Chris.
> > >
> > > On 18 May 2011 03:51, Unidata IDV Support <address@hidden
> > >wrote:
> > >
> > > > Hi again.
> > > >
> > > > I forgot to cc support-idv which I am doing now.
> > > >
> > > > -J
> > > >
> > > > > Hi Chris,
> > > > >
> > > > > Have you looked at Scheduled Tasks Log?
> > > > >
> > > > > Thanks.
> > > > >
> > > > > -Julien
> > > > >
> > > > > > Full Name: Chris Noble
> > > > > > Email Address: address@hidden
> > > > > > Organization: Home
> > > > > > Package Version: 2.9u3
> > > > > > Operating System: Windows 7 64-bit
> > > > > > Hardware:
> > > > > > Description of problem:
> > > > > >
> > > > > > I have a .bat file containing the following:
> > > > > >
> > > > > > jre\bin\java -Xmx512m -Didv.enableStereo=false -jar idv.jar
> > nz-gfs.isl
> > > > > >
> > > > > > which loads my isl file containing:
> > > > > >
> > > > > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > > > > > <isl debug="true" loop="1" offscreen="true" sleep="60.0minutes">
> > > > > > <bundle clear="true" file="${islpath}/nz-gfs2.xidv" wait="true"/>
> > > > > > <movie file="C:\_idv\animation.gif" imagesuffix="gif"
> > > > imagetemplate="%count:00%_%time:yyyy-MM-dd-HH'Z'-EEE%"
> > imagedir="C:\_idv"/>
> > > > > > </isl>
> > > > > >
> > > > > > In short it loads one of my bundles, makes a bunch of images and an
> > > > > > animation.
> > > > > >
> > > > > > Executing the bat file directly works fine - it runs as expected.
> > > > However,
> > > > > > when I try and schedule the bat file to run via the Windows
> > Scheduler
> > > > > > it fails. Tasks added before and after the java start command run
> > fine,
> > > > > > but it appears java/idv never starts as it should.
> > > > > >
> > > > > > I've tried running it as an admin with a password, whether logged
> > on or
> > > > > > not and I've even tried executing the command in the bat file
> > directly
> > > > > > in the scheduler (ie bypassing the bat altogether) but with no
> > luck.
> > > > > >
> > > > > > So, can you offer any advice on getting this to work with the
> > windows
> > > > > > scheduler?
> > > > > >
> > > > > > Any suggestions would be greatly appreciated.
> > > > > >
> > > > > > Regards, Chris.
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: XWY-365129
> > > > Department: Support IDV
> > > > Priority: Normal
> > > > Status: Closed
> > > >
> > > >
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: XWY-365129
> > Department: Support IDV
> > Priority: Normal
> > Status: Closed
> >
> >
>
>
Ticket Details
===================
Ticket ID: XWY-365129
Department: Support IDV
Priority: Normal
Status: Closed