[Svnmerge] svnmerge.py breaks in cron
Eric Kolve
ekolve at gmail.com
Tue Oct 23 18:54:52 PDT 2007
I tried running svnmerge.py trunk inside of a cron job and it failed with this:
stty: standard input: Invalid argument
I traced it back to this block of code:
# Parse the output of stty -a
out = os.popen("stty -a").read()
m = re.search(r"columns (\d+);", out)
if m:
return int(m.group(1))
I think the best thing might be to check if the TERM environment var
is set before attempting this.
--eric
More information about the Svnmerge
mailing list