Yes, i thought you might be doing that and im trying my best but getting a bit confused. <div><br></div><div>Would it be &quot;be&quot; and &quot;chanid&quot;? what is &quot;be&quot;? supposed to be?<br><br><div class="gmail_quote">
On 3 February 2012 18:03, Raymond Wagner <span dir="ltr">&lt;<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>&gt;</span> wrote:<br><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:50, David Crawford wrote:
    </div><blockquote type="cite"><div class="im">On 3 February 2012 17:45, Raymond Wagner <span dir="ltr">&lt;<a 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 bgcolor="#FFFFFF" text="#000000">
            <div> 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 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;     chanid, starttime = sys.argv[1:3]<br>
                    <br>
                    Looks like this one&#39;s my fault.  You want it to run
                    only when you have<br>
                    the proper number of command line arguments.  This
                    does the opposite.<br>
                    <br>
                    if len(sys.argv) != 3:<br>
                        raise Exception(&#39;Invalid argument count&#39;)<br>
                    chanid, starttime = sys.argv[1:3]<br>
                    <div><br>
                      &gt; prog = be.getRecording(&lt;chanid&gt;,
                      &lt;starttime&gt;)<br>
                      <br>
                    </div>
                    &quot;&lt;chanid&gt;&quot; and &quot;&lt;starttime&gt;&quot; are still
                    not valid variables.</blockquote>
                </div>
                <br>
                So what can i do about  &quot;&lt;chanid&gt;&quot; and
                &quot;&lt;starttime&gt;&quot;  ?<br>
              </blockquote>
              <br>
            </div>
            Use two variables you&#39;ve already defined, that you think
            would be storing values for those two pieces of data. 
            (Hint: You&#39;ve only defined three variables so far.)<br>
          </div>
          <br>
        </blockquote>
      </div>
      <br></div>
      %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.  Since the
    top of the script, you&#39;ve defined three variables: &quot;be&quot;, &quot;chanid&quot;,
    and &quot;starttime&quot;.  Now two of those make sense for what should be
    used in place of &quot;&lt;chanid&gt;&quot; and &quot;&lt;starttime&gt;&quot;.<br>
    <br>
    In case you haven&#39;t realized, I&#39;ve been giving you these hints in an
    attempt to get you to read through the code and try to understand
    what it&#39;s doing.<br>
  </div>

<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div><br></div>