TortoiseSVN命令保持打开的进程 [英] TortoiseSVN command keeps open processes

查看:139
本文介绍了TortoiseSVN命令保持打开的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用计划任务来运行.bat脚本,该脚本会更新我的SVN存储库.

计划的任务每小时运行一次.每次我运行脚本时,它仍然会创建一个新的"TortoiseProc.exe"进程,直到有很多打开的进程并且CPU达到99%为止.该脚本运行正常,但不幸的是,这些进程不会自动关闭.

I am using a scheduled task to run a .bat script which updates my SVN repositories.

The scheduled task runs every hour. It still creating a new process of "TortoiseProc.exe", every time I run the script, until the are a lot of open processes and the CPU is at 99%. The script is running fine, but unfortunately the processes won't be closed automatically.

这是我的.bat的样子:

This is how my .bat looks like:

CD C:\Program Files\TortoiseSVN\bin\
START /wait TortoiseProc.exe /command:update /path:"D:\somePath" /closeonend:1
START /wait TortoiseProc.exe /command:update /path:"D:\somePath" /closeonend:1

如您所见,我添加了/closeonend:1,这意味着如果没有错误发生,则应关闭对话框.

当我手动运行.bat脚本时,不会创建任何进程.

As you can see I added /closeonend:1 which means the dialog should be closed if no error occurs.

When I run the .bat script manually, no process is created.

有人提出建议,该怎么办?我真的很感激!

Does someone has a suggestion, what to do? I really would appreciate it!

推荐答案

请勿将tortoiseproc用于无人值守/非交互式脚本编写(自动化)-而是使用TorciseSVN随附的svn.exe.

Don't use tortoiseproc for unattended/non-interactive scripting (automation) - use svn.exe instead, which is shipped with TortoiseSVN.

CD C:\Program Files\TortoiseSVN\bin\
svn update "D:\somePath"
svn update "D:\somePath"

这篇关于TortoiseSVN命令保持打开的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆