<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 2/3/2012 12:50, David Crawford wrote:
    <blockquote
cite="mid:CAFiR-D9U+cGAmx=WAnFoXssRKQOt6h5Rnx7DvZ=bgxRZsKXO0A@mail.gmail.com"
      type="cite">On 3 February 2012 17:45, Raymond Wagner <span
        dir="ltr">&lt;<a moz-do-not-send="true"
          href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>&gt;</span>
      wrote:<br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000">
            <div class="im"> On 2/3/2012 12:41, David Crawford wrote:
              <blockquote type="cite">On 3 February 2012 17:34, Raymond
                Wagner <span dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:raymond@wagnerrp.com" target="_blank">raymond@wagnerrp.com</a>&gt;</span>
                wrote:<br>
                <div class="gmail_quote">
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div>On 2/3/2012 12:23, David Crawford wrote:<br>
                      &gt; if len(sys.argv) != 3:<br>
                    </div>
                    &gt; &nbsp; &nbsp; chanid, starttime = sys.argv[1:3]<br>
                    <br>
                    Looks like this one's my fault. &nbsp;You want it to run
                    only when you have<br>
                    the proper number of command line arguments. &nbsp;This
                    does the opposite.<br>
                    <br>
                    if len(sys.argv) != 3:<br>
                    &nbsp; &nbsp; raise Exception('Invalid argument count')<br>
                    chanid, starttime = sys.argv[1:3]<br>
                    <div><br>
                      &gt; prog = be.getRecording(&lt;chanid&gt;,
                      &lt;starttime&gt;)<br>
                      <br>
                    </div>
                    "&lt;chanid&gt;" and "&lt;starttime&gt;" are still
                    not valid variables.</blockquote>
                </div>
                <br>
                So what can i do about&nbsp; "&lt;chanid&gt;" and
                "&lt;starttime&gt;"&nbsp;&nbsp;?<br>
              </blockquote>
              <br>
            </div>
            Use two variables you've already defined, that you think
            would be storing values for those two pieces of data.&nbsp;
            (Hint: You've only defined three variables so far.)<br>
          </div>
          <br>
        </blockquote>
      </div>
      <br>
      %DIR% and %FILE%?<br>
    </blockquote>
    <br>
    Those are strings that get substituted in for values as they get
    passed though the jobqueue on the way to being executed.&nbsp; Since the
    top of the script, you've defined three variables: "be", "chanid",
    and "starttime".&nbsp; Now two of those make sense for what should be
    used in place of "&lt;chanid&gt;" and "&lt;starttime&gt;".<br>
    <br>
    In case you haven't realized, I've been giving you these hints in an
    attempt to get you to read through the code and try to understand
    what it's doing.<br>
  </body>
</html>