TortoiseSVN command keeps open processes

三世轮回 提交于 2020-01-11 14:32:08

问题


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.

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

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!


回答1:


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"


来源:https://stackoverflow.com/questions/43039658/tortoisesvn-command-keeps-open-processes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!