我只是在做了很长一段时间的rtorrent用户之后才设置了rutorrent。
我想删除已完成的下载。当我使用.torrent文件时,我只让.rtorrent.rc删除该文件,而rtorrent将其从列表中删除。
现在我有了rutorrent,我可以使用rss下载文件。但是没有平手的文件。
如果没有绑定文件,如何使用脚本从rtorrent/rutorrent删除已完成的下载?
我试过一个脚本
rtcontrol --from-view started is_complete=yes --delete --yes但似乎什么都没发生。
编辑:
当我以根用户身份运行它时,我得到:
root@linux:/home/usr1# ./bin/removeCompleted.sh
WARNING:pyrocore.util.load_config.ConfigLoader:Configuration file '/root/.pyroscope/config.ini' not found, use the command 'pyroadmin --create-config' to create it!
WARNING:pyrocore.util.load_config.ConfigLoader:Configuration file '/root/.pyroscope/config.py' not found!
ERROR:pyrocore.scripts.rtcontrol.RtorrentControl:Config file '/root/.rtorrent.rc' doesn't exist!
INFO:pyrocore.scripts.rtcontrol.RtorrentControl:Total time: 0.035 seconds..rtorrent.rc调用了我编写的用os.system("/home/usr1/bin/removeCompleted.sh > logfile.log")调用removeCompleted.sh的python脚本。日志文件返回为空。如果我直接从removeCompleted.sh中调用.rtorrent.rc,那么rtorrent就会冻结,我需要重新启动PC。
发布于 2013-05-28 17:30:46
要从事件处理程序或某些方法定义调用rtcontrol,可以使用--detach选项或某种形式的execute.bg= (特别是如果您通过shell脚本间接调用rtcontrol )。
顺便说一句,这适用于从rtorrent运行的任何类型的代码,然后再通过XML调用rtorrent。
https://askubuntu.com/questions/298124
复制相似问题