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.
Hello Kaviyazhahu, The script is not running correctly because of the last part > r > e > EOF What this does within GDCNTR is "run" the script, but "exit" instead of confirmation. From the command line you've noticed the "Enter <cr> to accept parameters or type EXIT" prompt. If you run (r) and then exit (e), that exit command is being entered for this prompt. The solution is to have an empty line in your script, which acts as an "enter" command for that prompt: gdcntr <<EOF GDFILE = ecmwfwind24.grd GDATTIM = 130724/0000F000 GFUNC = SQRT(ADD(MUL(UWND,UWND),MUL(VWND,VWND))) GVCORD = none GLEVEL = 0 CTYPE = F fline = 0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25 fint = 0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25 scale = 0 MAP = 32/1/2 GAREA = -60;30;30;120 CLRBAR = 1/V/cl/.2;.55 TITLE = 1/-2/ECMWF WIND SPEED-24/07/2013 00 hrs TEXT = 1 DEVICE = XW | ECMWF WIND | .9;.9 r e EOF Michael James Unidata > Full Name: kaviyazhahu > Email Address: address@hidden > Organization: INCOIS > Package Version: > Operating System: > Hardware: > Description of problem: Gempak(GDCNTR) running via command line but not from > shell script. > > **My shell script contents mentioned below.while running the script shows > like "Enter <cr> to accept parameters or type EXIT: Parameters requested: > GDATTIM,GLEVEL,GVCORD,GFUNC,GDFILE,CINT,LINE,MAP" and exiting from the > script.But While running thorugh Command line its running and image is > plotted on X window very well.. > > >>>> > gdcntr <<EOF > > GDFILE = ecmwfwind24.grd > GDATTIM = 130724/0000F000 > GFUNC = SQRT(ADD(MUL(UWND,UWND),MUL(VWND,VWND))) > GVCORD = none > GLEVEL = 0 > CTYPE = F > fline = 0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25 > fint = 0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25 > scale = 0 > MAP = 32/1/2 > GAREA = -60;30;30;120 > CLRBAR = 1/V/cl/.2;.55 > TITLE = 1/-2/ECMWF WIND SPEED-24/07/2013 00 hrs > TEXT = 1 > DEVICE = XW | ECMWF WIND | .9;.9 > r > e > EOF > > <<<< > > Ticket Details =================== Ticket ID: YSZ-359359 Department: Support GEMPAK Priority: Normal Status: Open