[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20060104: 20060104: CGI image generation with gpnexr2
- Subject: 20060104: 20060104: CGI image generation with gpnexr2
- Date: Thu, 05 Jan 2006 11:23:29 -0700
Ben,
I don't see what version of GEMPAK you are running, but probably
not the laet 2 distributions which gpnexr2_gif would have been installed.
Otherwise, it could be built from the source tree if you have a source
distribution by:
cd $NAWIPS/unidata/programs/gpnexr2
make all
make programs_gf
make clean
Also, you are hardcoding a bunch of envirionmental variables into your
csh instead of sourcing a Gemenviron file, so your script will definitely
have to be updated for $GEMEXE in 5.8.4 and later since GEMEXE is
now $NAWIPS/os/$NA_OS/bin.
If the script had been run by hand, check the radar.tmp file permissions to
make sure that the script web user can overwrite it.
Does the "ipcs" command show anything?
Steve Chiswell
Unidata User Support
>From: Ben Cotton <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200601050243.k052hK7s027981
> This message is in MIME format. The first part should be readable text,
> while the remaining parts are likely unreadable without MIME-aware tools.
>
>--118009413-19704-1136428993=:184
>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>On Wed, 4 Jan 2006, Unidata Support wrote:
>
>Steve,
>
>I searched high and low and I couldn't find the gpnexr2_gif executable you
>mentioned. Attached are two files:
>
>1) makepubrad.txt This is the csh script that the CGI invokes to
>generate the image. The directory it cd's to is world writeable, so
>that's not the problem.
>
>2) comment_subroutine.txt This is the subroutine from my perl CGI that
>invokes makepubrad.
>
>I'm not too concerned about files getting stepped on, as the idea is that
>this will be done once a day by one student. gpnexr2 can write to the
>gemglb.nts file in the /project/wxp/.../radar/images directory.
>
>The system information is:
>Linux wxp.eas.purdue.edu 2.4.22-1.2199.nptl #1 Wed Aug 4 12:21:48 EDT 2004
>i686 i686 i386 GNU/Linux
>
>
>Thanks,
>Ben
>
==================
>Ben Cotton, KC9FYX
>LDM Administrator
>Dept of Earth & Atmos. Sci.
>Purdue University
>
>http://www.funnelfiasco.com
>
>O: (765) 49-40655
>C: (765) 586-8992
>--118009413-19704-1136428993=:184
>Content-Type: TEXT/plain; charset=US-ASCII; name=makepubrad.txt
>Content-Transfer-Encoding: BASE64
>Content-ID: <Pine.WNT.4.64.0601042143130.184@jamestown>
>Content-Description:
>Content-Disposition: attachment; filename=makepubrad.txt
>
>IyEvYmluL2NzaCAtZg0KDQojIyMjIyMjIyMjIyMjIyMjIyMjDQojDQojIG1h
>a2VwdWJyYWQNCiMgICBCZW4gQ290dG9uIC0gUHVyZHVlIFVuaXZlcnNpdHkg
>LSAyMDA2DQojDQojICAgICAgIFRoaXMgc2NyaXB0IGdlbmVyYXRlcyB0aGUg
>cmFkYXIgaW1hZ2UgZm9yIHB1YmxpYy1yYWRhci5jZ2kNCiMNCiMjIyMjIyMj
>IyMjIyMjIyMjIyMNCg0Kc2V0ZW52IE5BV0lQUyAiL29wdC9nZW1wYWsiDQpz
>ZXRlbnYgR0FSUEhPTUUgJE5BV0lQUy9jb21ldC9nYXJwDQpzZXRlbnYgTkFf
>T1MgbGludXgNCnNldGVudiBHRU1QQUsgJE5BV0lQUy9nZW1wYWsNCnNldGVu
>diBHRU1QQUtIT01FICROQVdJUFMvZ2VtcGFrDQpzZXRlbnYgQ09ORklHRElS
>ICROQVdJUFMvY29uZmlnDQpzZXRlbnYgR0VNTElCICROQVdJUFMvbGliLyRO
>QV9PUw0Kc2V0ZW52IEdFTUVYRSAkTkFXSVBTL2Jpbi8kTkFfT1MNCnNldGVu
>diBHRU1QREYgJEdFTVBBSy9wZGYNCnNldGVudiBHRU1UQkwgJEdFTVBBSy90
>YWJsZXMNCnNldGVudiBHRU1FUlIgJEdFTVBBSy9lcnJvcg0Kc2V0ZW52IEdF
>TUhMUCAkR0VNUEFLL2hlbHANCnNldGVudiBHRU1NQVBTICRHRU1QQUsvbWFw
>cw0Kc2V0ZW52IEdFTU5UUyAkR0VNUEFLL250cw0Kc2V0ZW52IEdFTVBBUk0g
>JEdFTVBBSy9wYXJtDQpzZXRlbnYgR0VNUFRYVCAkR0VNUE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/plain; charset=US-ASCII; name=comment_subroutine.txt
>Content-Transfer-Encoding: BASE64
>Content-ID: <Pine.WNT.4.64.0601042143131.184@jamestown>
>Content-Description:
>Content-Disposition: attachment; filename=comment_subroutine.txt
>
>IyMjIyMjIyMjDQojDQojIGNvbW1lbnQgc3Vicm91dGluZQ0KIyAgIEJlbiBD
>b3R0b24gLSBQdXJkdWUgVW5pdmVyc2l0eSAtIDIwMDYNCiMNCiMgICAgICAg
>VGhpcyBzdWJyb3V0aW5lIGFsbG93cyB0aGUgdXNlciB0byBjb21tZW50IG9u
>IHRoZSByYWRhcg0KIw0KIyMjIyMjIyMjDQoNCnN1YiBjb21tZW50IHsNCiAg
>JHNpdGUgPSAkcXVlcnktPnBhcmFtKCdzaXRlJyk7DQogICRkYXRlID0gJHF1
>ZXJ5LT5wYXJhbSgnZGF0ZScpOw0KICAkcnRpbWUgPSAkcXVlcnktPnBhcmFt
>KCdydGltZScpOw0KICAkcHJvZCA9ICRxdWVyeS0+cGFyYW0oJ3Byb2QnKTsN
>CiAgJHRpbHQgPSAkcXVlcnktPnBhcmFtKCd0aWx0Jyk7DQoNCiAgJGxhdCA9
>ICRTSVRFU3skc2l0ZX1bMV07DQogICRsb24gPSAkU0lURVN7JHNpdGV9WzJd
>Ow0KDQpvcGVuIChTVERFUlIsICI+JlNURE9VVCIpOw0KDQogJG91dHB1dD0g
>IGAvcHJvamVjdC93eHAvYS93eHAvd3d3L2NnaS1iaW4vbWFrZXB1YnJhZCAk
>c2l0ZSAkZGF0ZSAkcnRpbWUgJHByb2QgJA0KdGlsdCAkbGF0ICRsb24gMj4m
>MWA7DQoNCiAgcHJpbnQgIkRFQlVHICRvdXRwdXQiOw0KICBwcmludCAiPFRB
>QkxFPjxUUj48VEQ+PElNRyBTUkM9JHtHSUZXRUJ9L3JhZGFyLnRtcD5cbjxU
>RD4iOw0KICBwcmludCAiPEZPUk0gQUNUSU9OPXB1YmxpYy1yYWRhci5jZ2kg
>TUVUSE9EPVBPU1Q+IjsNCiAgcHJpbnQgIjxJTlBVVCBUWVBFPUhJRERFTiBO
>QU1FPWNtZCBWQUxVRT1jb21tZW50PiI7DQogIHByaW50ICI8SU5QVVQgVFlQ
>RT1ISURERU4gTkFNRT1zaXRlIFZBTFVFPSRzaXRlPiI7DQogIHByaW50ICI8
>SU5QVVQgVFlQRT1ISURERU4gTkFNRT1kYXRlIFZBTFVFPSRkYXRlPiI7DQog
>IHByaW50ICI8SU5QVVQgVFlQRT1ISURERU4gTkFNRT1ydGltZSBWQUxVRT0k
>cnRpbWU+IjsNCiAgcHJpbnQgIjxJTlBVVCBUWVBFPUhJRERFTiBOQU1FPXBy
>b2QgVkFMVUU9JHByb2Q+IjsNCiAgcHJpbnQgIjxJTlBVVCBUWVBFPUhJRERF
>TiBOQU1FPXRpbHQgVkFMVUU9JHRpbHQ+XG4iOw0KDQogIHByaW50ICI8VEVY
>VEFSRUEgUk9XUz0xNSBDT0xTPTMwIE5BTUU9Y29tbWVudD5cbiI7DQogIHBy
>aW50ICJFbnRlciBjb21tZW50YXJ5IGhlcmUuPC9URVhUQVJFQT48QlI+PEJS
>PlxuIjsNCiAgcHJpbnQgIjxJTlBVVCBUWVBFPVRFWFQgTkFNRT1wZXJzb24+
>WW91ciBuYW1lIGhlcmU8L0lOUFVUPlxuIjsNCiAgcHJpbnQgIjxCUj48SU5Q
>VVQgVFlQRT1TVUJNSVQ+PC9GT1JNPjwvVEFCTEU+PEJSPjxCUj4iOw0KfQ0K
>
>--118009413-19704-1136428993=:184--
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web. If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.