This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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