mdevaev / emonoda

A set of tools to organize and manage your torrents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOError: [Errno 32] Broken pipe

mdevaev opened this issue · comments

$ python rtfetch.py -c=rtfetch.ini | ~/bin/test_rtfetch 
Traceback (most recent call last):
 File "rtfetch.py", line 346, in <module>
 main()
 File "rtfetch.py", line 307, in main
 cli_options.pass_failed_login_flag,
 File "rtfetch.py", line 212, in initFetchers
 tools.cli.oneLine("# Enabling the fetcher \"%s\"..." % (fetcher_name))
 File "/usr/local/lib/python2.7/dist-packages/ulib-0.4-py2.7.egg/ulib/tools/cli.py", line 21, in oneLine
 output.flush()
IOError: [Errno 32] Broken pipe
$ cat ~/bin/test_rtfetch 
#!/bin/bash
e="$*"
tst=$(echo -E "$e"|grep "Updated:"|sed "s/[^0-9]*\([0-9]*\).*/\1/")
if [[ $tst -ne 0 ]]
 then 
 echo -E "$e"
fi

У юзера кривой скрипт.