Search found 10 matches

by brianvh
Mon Sep 19, 2022 9:21 pm
Forum: Scripting
Topic: Jython works line by line, not via script
Replies: 6
Views: 5042

Re: Jython works line by line, not via script

I just wanted to report that updating to the most recent version of McIDAS-V fixed the problem. Thanks for all the responses! (Sorry it took me so long to finally get around to the upgrade.)
by brianvh
Wed Aug 31, 2022 6:31 pm
Forum: Scripting
Topic: Jython works line by line, not via script
Replies: 6
Views: 5042

Re: Jython works line by line, not via script

It ran fine via the jython shell, downloading my GOES file. I erased the old mcidasv.log and ran it again, no messages. I was somewhat amazed, so went back and ran the script using runMcV and am back to getting no GOES file. I do get a bunch of screen messages, the dump is (base) bvh-3:code brianvan...
by brianvh
Wed Aug 31, 2022 2:48 pm
Forum: Scripting
Topic: Jython works line by line, not via script
Replies: 6
Views: 5042

Re: Jython works line by line, not via script

Thanks for the detailed response. I'm running version 1.7.1, I suppose I could update to at least 1.8 and see if that fixes it. I only know how to run the script using runMcV; the jython shell appears to only accept code one line at a time. I tried pasting the whole file (minus multiline comments) b...
by brianvh
Sat Aug 27, 2022 7:40 pm
Forum: Scripting
Topic: Jython works line by line, not via script
Replies: 6
Views: 5042

Jython works line by line, not via script

For some time I've been happily running a script by cron job, but then it stopped working. The funny thing is that the script stopped working both on my laptop and on the server I use. I checked the script but running it line by line: no problems. But when I run it as a script, nothing happens. No e...
by brianvh
Mon Jun 14, 2021 9:42 pm
Forum: Scripting
Topic: ssec resources not loading
Replies: 4
Views: 4320

Re: ssec resources not loading

Oops, just realized I was not following the note I made to myself in my own code: data must be from the last 24 hours!

So now it works on my mac, I just have to figure out what's going on with my linux. Perhaps I should delete this thread?
by brianvh
Mon Jun 14, 2021 9:37 pm
Forum: Scripting
Topic: ssec resources not loading
Replies: 4
Views: 4320

Re: ssec resources not loading

wow, thanks for the quick response, Bob! Sorry about the version number, it's actually version 1.7. I have not upgraded between the last time I ran the code successfully and now. The script below used to work when running on a linux system in background or on my mac using "runMcV -script G16_do...
by brianvh
Mon Jun 14, 2021 8:53 pm
Forum: Scripting
Topic: ssec resources not loading
Replies: 4
Views: 4320

ssec resources not loading

I used to run a jython script via runMcV that would download GOES satellite files. I can find and view these files when I run the McIdas GUI, but nothing happens when I try to do the same thing with the script (and it USED to work). Looking in the log file I see "java.io.IOException: Could not ...
by brianvh
Wed Oct 24, 2018 8:33 pm
Forum: Scripting
Topic: run jython script remotely or by cron job
Replies: 3
Views: 5334

Re: run jython script remotely or by cron job

Editing my last post: the 'nooneinstance' switch seems to suppress the appearance of the logo in the dock and status bar, but nothing seems to be happening. Since there's no complaint this is progress of a sort. OS X is supposed to have openGL, but I'm getting an error from the +extension GLX switch...
by brianvh
Fri Oct 19, 2018 11:10 pm
Forum: Scripting
Topic: run jython script remotely or by cron job
Replies: 3
Views: 5334

Re: run jython script remotely or by cron job

Thanks Jay - some new stuff in there I don't yet recognize and need to work out. Once I have it working in the OS X environment I'll post, for I feel there may be some slight variations that others may find useful.
by brianvh
Mon Oct 08, 2018 2:37 pm
Forum: Scripting
Topic: run jython script remotely or by cron job
Replies: 3
Views: 5334

run jython script remotely or by cron job

I have a problem which looks very similar to the "mcidas in script mode" thread, (http://mcidas.ssec.wisc.edu/forums/viewtopic.php?f=31&t=1313) but has enough differences it may be less confusing if handled in a separate topic. I want to run a jython script by cron job using macintosh ...