1 #!/bin/sh
 2 #进行windows paths目录同步
 3 cd /mnt
 4 
 5 str="//10.33.4.199/linux"
 6 result=$(df | grep ${str} )
 7 if [[ "$result" != "" ]]
 8 then
 9     echo "/mnt/patches 已成功挂载到//10.33.4.199/linux"
10 else
11     echo "正在进行/mnt/patches挂载//10.33.4.199/linux"
12     mount -t cifs -o username="administrator",password="hxsd@123" //10.33.4.199/linux /mnt/patches
13 fi

 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-05-02
  • 2021-06-22
  • 2021-10-09
  • 2021-11-22
  • 2021-11-22
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案