Thanks Raymond,<div>How do I let the hashbang do the work? I have tried running it has a user job also, shouldnt that run the full script at least?</div><div><br></div><div>apologies if this seems outright novice, trying my best</div>
<div><br><div class="gmail_quote">On 3 February 2012 20:38, Jeremy Jones <span dir="ltr"><<a href="mailto:jeremy.dwain.jones@gmail.com">jeremy.dwain.jones@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Fri, Feb 3, 2012 at 2:32 PM, Raymond Wagner <span dir="ltr"><<a href="mailto:raymond@wagnerrp.com" target="_blank">raymond@wagnerrp.com</a>></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 15:18, Doug Lytle wrote:<br>
> David Crawford wrote:<br>
>> if len(sys.argv) != 3:<br>
> From someone with absolutely no Python experience, the line !=<br>
> typically means 'not equal to'.<br>
><br>
> My guess is that it's looking for 3 command line options.<br>
<br>
</div>Specifically, those three command line arguments _should_ be<br>
'/home/dave/uksub2srt/renamesrt.py', '<chanid>', and '<starttime>'.<br>
However, he keeps manually running the python interpreter, rather than<br>
letting the hashbang at the top of the script do its job, resulting in<br>
the four arguments: 'python', '/home/dave/uksub2srt/renamesrt.py',<br>
<div>'<chanid>', and '<starttime>'.<br>
</div><div><div><br></div></div></blockquote><div><br></div></div><div>Raymond: I must say I am real impressed with your patience in that you are actually still following this thread. :-)</div></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>