David,<div><br></div><div>I am also a novice at python, so I can empathize. </div><div><br></div><div>Remember that when you are learning new code: <u><i><b>search engines are your friend</b></i></u>. I googled:"python sys.argv list" and the second link produced this: <a href="http://stackoverflow.com/questions/2626026/python-sys-argv-lists-and-indexes">http://stackoverflow.com/questions/2626026/python-sys-argv-lists-and-indexes</a> which explains what the line code below is doing very well.</div>
<div><br></div><div> <span style>chanid, starttime = sys.argv[1:3]</span></div><div><br></div><div>I still did not understand why Raymond told you use [1:3] to populate two variables, so I again went to google with the search, "python use of colon in list". The second item listed was: <a href="http://stackoverflow.com/questions/4012340/python-colon-in-list-index">http://stackoverflow.com/questions/4012340/python-colon-in-list-index</a></div>
<div><br></div><div>Now I know from reading that page that the list is using items1 to 3, but not including 3. The items you passed from the command line were what you want for input as the channel Id and the start time. The command:</div>
<div><br></div><div><span style> chanid, starttime = sys.argv[1:3]</span>
</div><div><span style><br></span></div><div><span style>is storing those passed parameters into variables named:</span></div><div><span style>chanid</span></div><div><span style>starttime</span></div><div><span style><br>
</span></div><div><span style>Therefore the line:</span></div><div><span style> prog = be.getRecording(<chanid>, <be>)</span>
</div><div><span style><br></span></div><div><span style>should be:</span></div><div><span style>prog = be.getRecording(chanid, starttime)</span></div><div><span style><br></span></div><div><span style>What Raymond was telling you about the brackets "< >" was that they are generic placeholders for which one would insert the required information into that function call, not an actual part of the syntax of the code. Since you are passing that information from the command line, and not "hard coding" it in the script, you need to use the same variables that were used to store that information from the command line.</span></div>
<div><span style><br></span></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><span style>Jeremy</span></div><div><span style><br></span></div><div><span style><br></span></div><div><span style><br>
</span></div><div><span style><br></span></div>