Linuxでcronジョブをスケジュールする方法は?

Linuxでcronジョブをスケジュールする方法は?

スクリプトファイルがあります。 .file 毎月 1 日だけ実行できます。

クローン操作でこれをどのように実行できますか?

52 07 * * * bash '/home/linux/tanu/cat.sh'

ベストアンサー1

# * * * * *
# | | | | |
# | | | | day of week 0-7 (0 or 7 is Sun, or use names)
# | | | month 1-12 (or names)
# | | day of month 1-31
# | hour 0-23
# minute 0-59 

# runs on every 1st of month at 7:52am
52 7 1 * * bash '/home/linux/tanu/cat.sh'    

# runs on all other days at 7:52am
52 7 2-31 * * bash '/home/linux/tanu/cat.sh'     

これが正しいことを願っています。

おすすめ記事