橙子系统为您提供
1)安装expect
[root@server~]#yuminstall-yexpect
2)编写脚本
#!/usr/bin/expect-f
#createdbymis_yw2013-11-30
#verifyvirusbysystemuseroa
#setpassword[1index$argv0]
#settimeout10.
setfile[lindex$argv0]
spawnsu-c"/opt
spersky
v4fs/bin
v4fs-control–scan-file$file"root
expect{
"*Password:"{send"XXXXXX"}
}
interact
#!/bin
#createdbymis_yw2013-11-30
#verifyvirus.
file=$1
if[[!-e$file]];then
#echo"$fileisnotexsit."
echono
exit0
fi
infected=`.
erifyvirus$file|grepInfected|grep0`
if(($?));then
echoyes
else
echono fi
以上就是橙子系统给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击橙子系统官网吧。
本文来自橙子系统http://www.czgho.com/如需转载请注明!推荐:win7纯净版
© 版权声明
THE END