#cat  a.sh
#!/bin/sh
blue=`tput setaf 4`
reset=`tput sgr0`
echo "${blue}[INFORMATION]${reset}"
#!/bin/sh
lib_dir=$(cd $(dirname ${BASH_SOURCE[0]}); pwd)
LOG_format="/var/log/os_stress.log"
LOG_real="/var/log/os_real_stress.log"

  #local level="$(echo $1 | tr 'a-z' 'A-Z')"
mesg(){
  local GROUP=$1
  local IP=$2
  local KEY=$3
  local VALUE=$4
  local MEASURE=$5

  echo -e "\033[32m$(date "+%F %H:%M:%S")\033[0m,$GROUP,$IP,$KEY,$VALUE,$MEASURE"
  return 0
}
mesg $1 $2 $3 $4 $5

相关文章:

  • 2021-09-20
  • 2021-09-04
  • 2021-09-27
  • 2021-07-17
  • 2021-07-13
猜你喜欢
  • 2022-12-23
  • 2021-05-21
  • 2021-10-12
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-08-01
相关资源
相似解决方案