[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20020122: GEMPAK - problem with run script from crontab
- Subject: 20020122: GEMPAK - problem with run script from crontab
- Date: Tue, 22 Jan 2002 10:14:44 -0700
Marijana,
The "gf" device driver requires access to an X server.
You would have to set your DISPLAY environmental variable
to an X server, or virtual X server. When you run from a crontab,
generally your DISPLAY variable is not set, and you may not have
permission to contact the X server.
You can use the "gif" device driver without an X server.
Remove any old "gplt" process using the "cleanup -c"
script, or the "kill" command, and check for old message queues
still in use with the "ipcs" command. Remove old message queues
with the "ipcrm" command.
Steve Chiswell.
>From: Marijana Crepulja <address@hidden>
>Organization: fhmi
>Keywords: 200201221048.g0MAm9x16503
>
> Dear Steve Chiswell,
>
>I have problem with run gempak script from crontab.
>When I run crontab in log file I have error
>
> [GEMPLT -101]
> [IP -10] GDCNTR
> [GDCNTR -3]
>Error in message send = 22
>itype, ichan, nwords,0,28672010,3
> [GEMPLT -101]
> [GPEND -3]
> [GEMPLT -101]
> [IP -10] GDCNTR
> [GDCNTR -3]
>Error in message send = 22
>itype, ichan, nwords,0,28672010,3
> [GEMPLT -101]
> [GPEND -3]
>
>
> My shell script
>
> #!/bin/bash -f
> myear=`date "+%Y"`
> mmont=`date "+%m"`
> mdat=`date "+%d"`
>
>for gg in 00 06 12 18 24 30 36 42 48
>
>#/home/oper/nawips/bin/linux/gpcolor << GPCOLOR_EOF
># colors = 101=white
># device = gf|
>#ru
>
>#exit
>#GPCOLOR_EOF
>
>/home/oper/nawips/bin/linux/gdcntr << GDCNTR_EOF
> GDATTIM = /f$gg
> GLEVEL = 1000
> GVCORD = PRES
> GFUNC = TMPC
> GDFILE = /home/oper/tmp/maja/gotovo/podaci/gribovani
> CINT = 2
> LINE = 25/-2/2
> MAP = 8
> TITLE = 8/-2/Temperature (Cdeg) 2m $mdat.$mmont.$myear. 00
>UTC+$gg H
> DEVICE = gf|out/t2m$gg.gif
> SATFIL =
> RADFIL =
> PROJ = mer
> GAREA = 31;-19;63;35
> CLEAR = YES
> PANEL = 0/3
> TEXT = 1/21/1/hw
> SCALE = 0
> LATLON = 0
> HILO =
> HLSYM =
>! CLRBAR = 8//cl/.058;0.5
> CLRBAR = 8//CR/0.94;0.5
> CONTUR = 1
> SKIP = 0
> FINT =
> FLINE = 30 - 7
> CTYPE = f
> LUTFIL =
> STNPLT =
>ru
>
>exit
>GDCNTR_EOF
>
>/home/oper/nawips/bin/linux/gpend
>
>done
>
>exit
>
>Thanks much for any help you can give,
> Marijana Crepulja
>