240 发简信
IP属地:湖北
  • 修改登录后提示代码有点问题吧
    #!bin/bash

    # call cowsay after login
    animal=$(ls /usr/lib/node_modules/cowsay/cows | shuf -n 1)
    declare -i name_length=${#animal}-4
    # pass sentence to cowsay with random animal
    fortune | cowsay -f ${animal:0:$name_length}

    改成这样就对了

  • 修改登录后提示代码有点问题吧
    #!bin/bash

    # call cowsay after login
    animal=$(ls /usr/lib/node_modules/cowsay/cows | shuf -n 1)
    declare -i name_length=${#animal}-4
    # pass sentence to cowsay with random animal
    fortune | cowsay -f ${animal:0:$name_length}

    改成这样就对了

    CentOS安装fortune+cowsay实现cool登录欢迎语

    原文地址: //www.greatytc.com/p/d0585ce8e78c 0. 前言 今天突然想自定义下登录欢迎标语,结果发现centos 7.2上没带for...