Crontab 內使用 date 來產生檔名 2023年08月26日 · 科技* * * * * test.sh > /tmp/test.$(date +\%M).log 2>&1 在 crontab 內使用 date 參數上就要在”%”前面加 “\” 反斜線不然會無法正常執行
發佈留言