We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#!/bin/bash logs_path="/home/www/bin/" TIME=`date '+%Y-%m-%d %H:%M:%S'` GO=$(redis-cli -h 127.0.0.1 -p 63789 -a tinywan -n 12 get Golang) echo " Redis Crontab [ ${TIME} ]:: ${GO}" >> ${logs_path}crontab_redis_10.log echo "[$TIME]-[BeginTime]:${GO}" >> ${logs_path}crontab_redis_12.log
:: tinywan_golang17-06-02 10:15:30 :: tinywan_golang17-06-02 10:16:00 :: tinywan_golang17-06-02 10:16:30
Redis Crontab [ 17-06-02 10:15:30 ] :: tinywan_golang
echo " Redis Crontab [ " $(date '+%Y-%m-%d %H:%M:%S') " ] ::" $GO >> /home/www/bin/crontab_redis_12.log
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The shell script writes the log file, lacks information, and some can not write
shell script
crontab_redis_10.log
The text was updated successfully, but these errors were encountered: