ymdh=`date +%Y%m%d%H` do.sh > $dir/log/$ymdh.tsv ↓ ymdh=`TZ=JST-9 date +%Y%m%d%H` do.sh > $dir/log/$ymdh.tsv
export TZ=JST-9 ymdh=`date +%Y%m%d%H` do.sh > $dir/log/$ymdh.tsv
0 0 * * * /home/yto/cron/cron-daily.sh ↓ 0 15 * * * /home/yto/cron/cron-daily.sh
cron-hourly.sh:0 * * * * /home/yto/cron/cron-hourly.sh
#!/usr/bin/zsh export TZ=JST-9 ymdh=`date +%Y%m%d%H` hour=`date +%H` if [ $hour = 00 ]; then # 一日一回、0時にやる処理 # ... # ... fi