zoukankan      html  css  js  c++  java
  • 每周散记 20180806

    1.  文件删除

    linux 中文文件名 带空格等特殊字符名称的文件删除
    将文件名用引号抱起来, 删除多个是 用空格隔开
    如:rm '文件名1' '文件2'
    https://www.cnblogs.com/jhj117/p/4067887.html

    2. except 使用  

    太频繁还是用免密码登录方便

    安装:
    yum install expect

    下面的脚本 远程登录182.106.233.3 后并执行 ls /root/ 命令 运行通过
    #!/usr/bin/expect -f
    set timeout 30
    spawn ssh root@182.106.233.3 ls /root/
    expect "*password:"
    send "password "
    expect eof

    #!/usr/bin/expect -f
    set timeout -1
    spawn scp -r /var/www/foreverSave/505921418668365106/1894907225900 root@182.106.233.3:/var/www/foreverSave
    expect {
    "*password:" {send "password "}
    "*(yes/no)*" {send "yes "}
    }
    expect eof

    运行: chmod 755 file
    ./file

    参考:
    https://www.cnblogs.com/yangmingxianshen/p/7967040.html

    3. linux 服务器 远程操作

    这个文章说的内容比较全 包括了免密码登录
    https://blog.csdn.net/ttomqq/article/details/52998320
    shell结合expect写的批量scp脚本工具 总的来说不是很方便了 应该考虑免密码登录算了
    https://www.jb51.net/article/34005.htm

    4. 阿里云还是值得多看看  能学习和了解不少知识  分块和工程化都挺好

    https://help.aliyun.com/document_detail/25446.html?spm=a2c4g.11186623.6.672.PbVJg1

  • 相关阅读:
    【HDOJ】5179 beautiful number
    【HDOJ】3459 Rubik 2×2×2
    【HDOJ】3419 The Three Groups
    【HDOJ】3085 Nightmare Ⅱ
    【HDOJ】3451 Beat drop
    【HDOJ】3309 Roll The Cube
    WP手机使用记录
    WinCE系统下应用崩溃原因的分析方法
    指针减法
    WinCE Overlay
  • 原文地址:https://www.cnblogs.com/swing07/p/9468840.html
Copyright © 2011-2022 走看看