[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000603: Can't get a McIDAS script to work...



>From: Gilbert Sebenste <address@hidden>
>Organization: NIU
>Keywords: 200006031813.e53IDIT00341 McIDAS-X shell script

Gilbert,

>Got a problem which hopefully will be easy for you to solve.
>
>I am trying to run the following script right out of my crontab. But when
>I run it, it gives me an "unexpected end of script in line 83"...and
>doesn't run it. What gives? It ran fine via command line, without the
>paths and so forth on top.
>
>Any ideas/help would be great. Thanks, as always!

Your script looks to be munged in some way: it appears to be a combination
of Unix shell scripting (e.g., #!/bin/sh -f) and McIDAS BATCH script
(e.g., SF 1, etc.) syntax.  Please let me know if the script that I
received below was the complete one you meant to send.  If it is, it
will need some restructuring to work.

>#!/bin/sh -f
>
>set McINST_ROOT /home/mcidas
>if ( ! ${?MCPATH} ) then
>      set MCDATA /home/mcidas/workdata
>      set MCPATH ${MCDATA}:/home/mcidas/data:/home/mcidas/help:/home/mcidas/co
> d
>      set MCGUI /home/mcidas/bin
>      set MCTABLE_READ "${MCDATA}/MCTABLE.TXT;/home/mcidas/data/ADDESITE.TXT"
>      set MCTABLE_WRITE "/home/mcidas/data/ADDESITE.TXT"
>      set XCD_disp_file $MCDATA/DECOSTAT.DAT
>endif
>set LD_LIBRARY_PATH $McINST_ROOT/tcl/lib:/home/mcidas/lib:/usr/local/lib:/lib:
> /usr/lib
>set DISPLAY weather:1
>set MCCOMPRESS=TRUE
>SF 1
>EG 1
>EG I 1
>EU REST IMAGE2
>EU REST IMAGE2
>GU MAKE 2 50 0 0 
>IMGDISP RTGINI/GE1KVIS STA=EAR 1 WID=9
>REM IMGDISP RTGINI/GW1KVIS STA=DSM 1 WID=9
>REM IMGDISP G8-GHCC/VIS STA=VTN MAG=1 -2 1 WID=9
>MAP VH 2
>EU REST IMAGE2
>EU REST IMAGE2
>GU MAKE 2 50 0 0
>SVGIF 1 CFDG GRA=1
>OS "mv /home/mcidas/workdata/CFDG.GIF /home/httpd/html/cfdg.gif
>MAP SAT 2 COU=ALL 
>SVGIF 1 CFDG2 GRA=1
>OS "mv /home/mcidas/workdata/CFDG2.GIF /home/httpd/html/cfdg2.gif
>REM
>REM This is floater #2
>SF 1
>EG 1
>EG I 1
>EU REST IMAGE2
>EU REST IMAGE2
>GU MAKE 2 50 0 0
>IMGDISP RTGINI/GE1KVIS STA=UIN 1 WID=9
>REM IMGDISP RTGINI/GW1KVIS STA=OKC 1 WID=9
>REM IMGDISP G8-GHCC/VIS STA=LBF MAG=1 -2 1 WID=9
>MAP VH 2
>EU REST IMAGE2
>EU REST IMAGE2
>GU MAKE 2 50 0 0
>SVGIF 1 CFDG GRA=1
>OS "mv /home/mcidas/workdata/CFDG.GIF /home/httpd/html/cfdg3.gif
>MAP SAT 2 COU=ALL
>SVGIF 1 CFDG2 GRA=1
>OS "mv /home/mcidas/workdata/CFDG2.GIF /home/httpd/html/cfdg4.gif
>EG 1
>EG I 1
>REM This is floater #3
>SF 1
>EG 1
>EG I 1
>EU REST IMAGE2
>EU REST IMAGE2
>GU MAKE 2 50 0 0
>IMGDISP RTGINI/GE1KVIS STA=SQI 1 WID=9
>REM IMGDISP RTGINI/GW1KVIS STA=OKC 1 WID=9
>REM IMGDISP G8-GHCC/VIS STA=SJT MAG=1 -2 1 WID=9
>MAP VH 2
>EU REST IMAGE2
>EU REST IMAGE2
>GU MAKE 2 50 0 0
>SVGIF 1 CFDG GRA=1
>OS "mv /home/mcidas/workdata/CFDG.GIF /home/httpd/html/cfdg5.gif
>MAP SAT 2 COU=ALL
>SVGIF 1 CFDG2 GRA=1
>OS "mv /home/mcidas/workdata/CFDG2.GIF /home/httpd/html/cfdg6.gif
>EG 1
>EG I 1
>exit
>
>EOF
>
># done
>exit 0

Tom

>From address@hidden Mon Jun  5 13:06:35 2000
>Subject: Re: 20000603: Can't get a McIDAS script to work... 

Tom,

re: your script is a mixture of Unix shell script and McIDAS BATCH

I thought I needed the stuff at the beginning for it to work? How should
it go?

*******************************************************************************
Gilbert Sebenste                                                     ********
Internet: address@hidden    (My opinions only!)                     ******
Staff Meteorologist, Northern Illinois University                      ****
E-mail: address@hidden                                 ***
web: http://weather.admin.niu.edu                                      **
Work phone: 815-753-5492                                                *
*******************************************************************************