From c92d9940c3774bd3f719a1655b0f2d3f6fe3020d Mon Sep 17 00:00:00 2001 From: garhve Date: Fri, 2 Dec 2022 19:41:42 +0800 Subject: transfer blogs 1 --- index.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'index.xml') diff --git a/index.xml b/index.xml index d35117b..d53bad7 100644 --- a/index.xml +++ b/index.xml @@ -6,7 +6,19 @@ Recent content on blog | garhve's hub Hugo -- gohugo.io en-us - Wed, 10 Aug 2022 19:24:59 +0800 + Thu, 25 Aug 2022 13:40:56 +0800 + + Mess with bash(1) + https://blog.garhve.com/posts/3/ + Thu, 25 Aug 2022 13:40:56 +0800 + + https://blog.garhve.com/posts/3/ + Crontab crontab is a useful tool, I really regret that I don’t familar it earlier. +It’s usage really simple, and these two are my frequent using: +crontab -e #edit crontab file that reside in /var/spool/cron crontab -l #list current crontab job It basic syntax as follow, also really simple example of usage: +delete file foo every minute * * * * * rm foo delete file foo every 15 minutes 15 * * * * rm foo delete file foo every beginning of hour 0 * * * * rm foo delete file foo every minute after 3 hours * 3 * * * rm foo delete file foo every day at 18:30 30 18 * * * rm foo delete file foo every beginning of month 0 0 0 * * rm foo delete file foo on beginning of 1st,10th of month 0 0 1,10 * * rm foo The usage really simple, I now use it to renew my SSL certification and daily update bt-tracker. + + Install arch linux on Tencent server https://blog.garhve.com/posts/2/ -- cgit v1.2.3-70-g09d2