python系统调用

2024-09-30 01:29:36 发布

您现在位置:Python中文网/ 问答频道 /正文

使用此命令,我只得到名为OUTPUT的文件(实际上,我还有更多--include flags)—因此可以按预期工作:

os.system("rsync --rsh=ssh -arvuP --include='OUTPUT' --exclude='*' user@host:there/ ./here")

在这种情况下,忽略--include和--exclude标志:

^{pr2}$

我想知道我做错了什么?非常感谢!在

编辑:对不起,这是在OSXLeopard上,我得到了所有的文件。。。在


Tags: 文件命令hostoutputincludeossystemssh

热门问题