比较好的教程
http://www.xfocus.net/articles/200104/169.html
写了如下脚本,一直无法挂载:
#!/usr/bin/expect
#Disk=( /dev/sda /dev/sdb/ /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl /dev/sdm /dev/sdn )
spawn mkfs.ext4 /dev/sdm
expect "Proceed"
send "y\r"
expect eof
exec sleep 60
spawn mkfs.ext4 /dev/sdn
expect "Proceed"
send "y\r"
expect eof
exec sleep 60
Expect 教程中文版
最新推荐文章于 2017-02-28 22:21:00 发布