[英]Using Wget To Download File Every Five Minutes
Currently, I'm trying to use the date
command (NOT crontab) to manually download a file that is uploaded to a server every five minutes. 目前,我正在尝试使用
date
命令(NOT crontab)手动下载每五分钟上传到服务器的文件。
I realize that date -u +%M --date="5 minutes ago"
will display the time from 5 minutes ago but, I'm looking for a way to go back in 5 minute increments . 我意识到
date -u +%M --date="5 minutes ago"
将显示date -u +%M --date="5 minutes ago"
的时间,但是,我正在寻找一种方法以5分钟的增量返回 。
那个5可以是任何数字:
for n in {0..1440..5}; do date -u --date="$n minutes ago"; done
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.