<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Aaron:<br>
    <br>
    I think the problem is with the "date" command.&nbsp; You can test this
    with<br>
    specifying the date (replace the top lines with a constant date).&nbsp;
    If this<br>
    is indeed the case, some suggestions:<br>
    <br>
    1.&nbsp; Try with double quotes around the arguments to date, e.g.,<br>
    <br>
    '!date +"%Y%m%d" &gt;&gt; /home/muaddib/grads/date/date.formatted'<br>
    <br>
    I think you want a date like 20131226, but with single quotes around<br>
    the argument I think you'll get something like "Ymd".<br>
    <br>
    2.&nbsp; Is it possible you have two different "date" commands?&nbsp; It could<br>
    be running in batch mode is using a different path that when you are<br>
    running interactively (e.g., you have a .bashrc or .cshrc that is
    not<br>
    accessed in batch mode).<br>
    <br>
    3.&nbsp; The &gt;&gt; syntax will append the output to file
    date.formatted,<br>
    but your script is always accessing the second line of this file:<br>
    sysdate = sublin(d,2)<br>
    Not sure why you have this.&nbsp; Have you tried &gt;! to overwrite the<br>
    file, then read the first line?<br>
    <br>
    Jim<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/26/13 8:46 AM, Perry, Aaron @ LSC
      wrote:<br>
    </div>
    <blockquote
cite="mid:DEE427CC71C1184E9F7C903BF1EEE7A802BD10CF@LSC-EX10MBX03.lsc.vsc.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: 10pt;">Good Afternoon Jennifer,<br>
        <br>
        Thanks for the reply! Sorry about not attaching the script that
        I'm having issues with!<br>
        <br>
        I've attached it to this email.<br>
        <div><br>
          <div style="font-family:Tahoma; font-size:13px">
            <div style="font-family:Tahoma; font-size:13px">
              <div style="font-family:Tahoma; font-size:13px">
                <div style="font-family:Tahoma; font-size:13px">
                  <div style="font-family:Tahoma; font-size:13px">
                    <div style="font-family:Tahoma; font-size:13px"><font
                        size="3"><font face="Arial"><font face="Tahoma"
                            size="2"><font size="2"><br>
                              Onward and Upward,<br>
                              <br>
                            </font>Aaron Perry<br>
                          </font><font size="3"><font size="3"><font
                                face="Tahoma" size="2">Boston, MA<br>
                                Mobile: 617-780-4312</font><br>
                            </font></font></font></font></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div style="font-family: Times New Roman; color: #000000;
          font-size: 16px">
          <hr tabindex="-1">
          <div style="direction: ltr;" id="divRpF123183"><font
              color="#000000" face="Tahoma" size="2"><b>From:</b>
              <a class="moz-txt-link-abbreviated" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>
              [<a class="moz-txt-link-abbreviated" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] on behalf of Jennifer
              Adams [<a class="moz-txt-link-abbreviated" href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>]<br>
              <b>Sent:</b> Thursday, December 26, 2013 10:05 AM<br>
              <b>To:</b> GrADS Users Forum<br>
              <b>Subject:</b> Re: [gradsusr] "No Files Open" When
              Running In Batch Mode<br>
            </font><br>
          </div>
          <div>You've probably got a 'q time' command in your script
            before you open any files, or after you open a file with
            some error. But without knowing what script you're running
            on startup, it's impossible to help any further.
            <div>--Jennifer</div>
            <div><br>
              <div><br>
                <div>
                  <div>On Dec 26, 2013, at 12:56 AM, Perry, Aaron @ LSC
                    wrote:</div>
                  <br class="Apple-interchange-newline">
                  <blockquote type="cite"><span class="Apple-style-span"
                      style="border-collapse:separate;
                      font-family:Helvetica; font-style:normal;
                      font-variant:normal; font-weight:normal;
                      letter-spacing:normal; line-height:normal;
                      orphans:2; text-indent:0px; text-transform:none;
                      white-space:normal; widows:2; word-spacing:0px;
                      font-size:medium">
                      <div>
                        <div style="direction:ltr; font-family:Tahoma;
                          color:rgb(0,0,0); font-size:10pt">
                          Good Morning All,<br>
                          <br>
                          Currently, I'm having an issue where "No Files
                          Open" pops up every time that I run GrADS in
                          Batch Mode (grads -clb).<span
                            class="Apple-converted-space">&nbsp;</span><br>
                          <br>
                          This results in the Valid Forecast Time not
                          being displayed on my plots. At first, I
                          thought that it was an issue of the 'set t 1'
                          placement after 'reinit', as I'm using
                          g2ctl/gribmap ctl files.<br>
                          <br>
                          I've sort of narrowed this down to just a
                          batch mode problem because, when I open the
                          .gs file with 'grads -l' , "No Files Open"
                          does not pop up and the Valid Forecast Time
                          shows up on the plot.<br>
                          <br>
                          Has anybody else had this issue before?<br>
                          <br>
                          <br>
                          <div><br>
                            <div style="font-family:Tahoma;
                              font-size:13px">
                              <div style="font-family:Tahoma;
                                font-size:13px">
                                <div style="font-family:Tahoma;
                                  font-size:13px">
                                  <div style="font-family:Tahoma;
                                    font-size:13px">
                                    <div style="font-family:Tahoma;
                                      font-size:13px">
                                      <div style="font-family:Tahoma;
                                        font-size:13px"><font size="3"><font
                                            face="Arial"><font
                                              face="Tahoma" size="2"><font
                                                size="2">Onward and
                                                Upward,<br>
                                                <br>
                                              </font>Aaron Perry<br>
                                            </font><font size="3"><font
                                                size="3"><font
                                                  face="Tahoma" size="2">Boston,
                                                  MA<br>
                                                  Mobile: 617-780-4312</font><br>
                                              </font></font></font></font></div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                        _______________________________________________<br>
                        gradsusr mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:gradsusr@gradsusr.org"
                          target="_blank">gradsusr@gradsusr.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://gradsusr.org/mailman/listinfo/gradsusr"
                          target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                      </div>
                    </span></blockquote>
                </div>
                <br>
                <div><span class="Apple-style-span"
                    style="border-collapse:separate; color:rgb(0,0,0);
                    font-family:Helvetica; font-style:normal;
                    font-variant:normal; font-weight:normal;
                    letter-spacing:normal; line-height:normal;
                    orphans:2; text-indent:0px; text-transform:none;
                    white-space:normal; widows:2; word-spacing:0px;
                    font-size:medium"><span class="Apple-style-span"
                      style="border-collapse:separate; color:rgb(0,0,0);
                      font-family:Helvetica; font-size:12px;
                      font-style:normal; font-variant:normal;
                      font-weight:normal; letter-spacing:normal;
                      line-height:normal; text-indent:0px;
                      text-transform:none; orphans:2;
                      white-space:normal; widows:2; word-spacing:0px">
                      <div style="word-wrap:break-word"><span
                          class="Apple-style-span"
                          style="border-collapse:separate;
                          color:rgb(0,0,0); font-family:Helvetica;
                          font-size:12px; font-style:normal;
                          font-variant:normal; font-weight:normal;
                          letter-spacing:normal; line-height:normal;
                          text-indent:0px; text-transform:none;
                          orphans:2; white-space:normal; widows:2;
                          word-spacing:0px"><span
                            class="Apple-style-span"
                            style="border-collapse:separate;
                            color:rgb(0,0,0); font-family:Helvetica;
                            font-size:12px; font-style:normal;
                            font-variant:normal; font-weight:normal;
                            letter-spacing:normal; line-height:normal;
                            text-indent:0px; text-transform:none;
                            orphans:2; white-space:normal; widows:2;
                            word-spacing:0px">
                            <div>--</div>
                            <div>Jennifer M. Adams<br>
                              Center for Ocean-Land-Atmosphere Studies
                              (COLA)<br>
                              111 Research Hall, Mail Stop 2B3<br>
                              George Mason University<br>
                              4400 University Drive<br>
                              Fairfax, VA 22030&nbsp;<br>
                              <br>
                            </div>
                            <div><br class="khtml-block-placeholder">
                            </div>
                            <br class="Apple-interchange-newline">
                          </span></span></div>
                    </span></span><br class="Apple-interchange-newline">
                </div>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>