发新话题
打印

[原创] 垃圾元素及视图的清理( 此文章被查看:5025次,被回复:27篇!! )

智慧是在碰撞中产生的,学习!

© 本文为 lemon 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

删除垃圾视图还是没有写出来啊

© 本文为 tindi 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

for %V in (*.*) do cleartool rmelem -force "%V"

这个命令试了一下,还是不能删除啊。请问搂主有没有更好的方法?

© 本文为 cn_chenfeng 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

偶用find . -exec 'cleartool rmelem "%CLEARCASE_PN%"'命令删的但是每个文件都会弹出确认对话框要一个一个的点yes 有没有一次性搞定的办法啊?

© 本文为 喝咖啡的猫 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

用过 for %V in (*.*) do cleartool rmelem -force "%V" 这个命令,很好用啊,支持一下!

© 本文为 c_chen 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

还是among心肠好,不用下载就能看到代码,谢谢了:)

© 本文为 gsjxuer 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

for %V in (*.*) do cleartool rmelem -force "%V",能解释下这命令的意思不,比如%V是什么意思

© 本文为 yuanmei209 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

以下是由IBM提供清理lost+found directory的方法,由於都是英文,所以需要傷腦筋一下

After you cd into lost+found directory, you can use the following command to print out all elements in lost+found

cleartool find . -print

To remove all elements from lost+found recursively, you can replace -print with -exec

cleartool find . -exec “cleartool rmelem -force %CLEARCASE_PN%”

If you have elements with spaces in their path name, you need to put “ around %CLEARCASE_PN%

cleartool find . -exec “cleartool rmelem -force \”%CLEARCASE_PN%\””

If you put those commands in a batch file, you need to double the % sign

For example,
cleartool find . -exec “cleartool rmelem -force %%CLEARCASE_PN%%”
cleartool find . -exec “cleartool rmelem -force \”%%CLEARCASE_PN%%\””

We were talking about deleting file elements before deleting directory elements,

cleartool find . -type f -exec “cleartool rmelem -force %CLEARCASE_PN%”
cleartool find . -type d -exec “cleartool rmelem -force %CLEARCASE_PN%”

We also talked about running the following command multiple times to totally clean out lost+found

cleartool find . -exec “cleartool rmelem -force %CLEARCASE_PN%”

Please make sure you run the above command after you cd into lost+found directory.
Please note that if you run the above command at the root directory of your VOB, all elements will be deleted and the only way to get them back will be restoring from backup.

© 本文为 falcon1207 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

有人做过杜绝在这儿产生垃圾的防范措施?

很欣赏大家刨根问底的方式,这样才能把问题解决彻底.
另一方面,我想既然大家不想在lost+found中看到任何东西,那能否杜绝用户的某些操作呢? 比如来一个禁止删除非空目录的trigger之类的!

© 本文为 williamxu 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

刚刚做这个平台,还没考虑到这个问题,以后会虚心请教.希望高手们能讨论出来结果,到时候俺会很方便,谢谢你们.

© 本文为 wlyt 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

发新话题