Could you give another suggestion to what the full script might be so i can try again? <div><br></div><div>Thanks - really apreciate it <br><br><div class="gmail_quote">On 3 February 2012 17:41, David Crawford <span dir="ltr">&lt;<a href="mailto:davidcrawford83@gmail.com">davidcrawford83@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So what can i do about 
&quot;&lt;chanid&gt;&quot; and &quot;&lt;starttime&gt;&quot;  ?<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">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>

<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.<br>
<div><div>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">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>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>