[Svnmerge] svnmerge.py breaks in cron

Dustin J. Mitchell dustin at zmanda.com
Wed Oct 24 07:17:47 PDT 2007


On 10/23/07, Eric Kolve <ekolve at gmail.com> wrote:
> 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.

Good catch.  Patch attached -- any thoughts?

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stty-term.patch
Type: application/octet-stream
Size: 647 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20071024/abfb3ccb/attachment.obj 


More information about the Svnmerge mailing list