首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从rutorrent删除已完成的下载

从rutorrent删除已完成的下载
EN

Ask Ubuntu用户
提问于 2013-05-21 08:57:44
回答 1查看 2.7K关注 0票数 1

我只是在做了很长一段时间的rtorrent用户之后才设置了rutorrent。

我想删除已完成的下载。当我使用.torrent文件时,我只让.rtorrent.rc删除该文件,而rtorrent将其从列表中删除。

现在我有了rutorrent,我可以使用rss下载文件。但是没有平手的文件。

如果没有绑定文件,如何使用脚本从rtorrent/rutorrent删除已完成的下载?

我试过一个脚本

代码语言:javascript
复制
rtcontrol --from-view started is_complete=yes --delete --yes

但似乎什么都没发生。

编辑:

当我以根用户身份运行它时,我得到:

代码语言:javascript
复制
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。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2013-05-28 17:30:46

要从事件处理程序或某些方法定义调用rtcontrol,可以使用--detach选项或某种形式的execute.bg= (特别是如果您通过shell脚本间接调用rtcontrol )。

顺便说一句,这适用于从rtorrent运行的任何类型的代码,然后再通过XML调用rtorrent

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/298124

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档