0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Mac cronにて時間を指定してshellのファイルを動かす

0
Last updated at Posted at 2022-01-12

概要

  • Macにてcronを設定してshellスクリプトのファイルを動かす方法をまとめる

詳細

  • 今回は1時間ごとに毎時00分に当該コマンドを実行してくれるようにcronを設定してみる。

方法

  1. ターミナルにて下記コマンドを実行してcronの設定ファイルを開く。

    $ crontab -e
    
  2. 下記の様に記載する。

    0 * * * * bash shellファイルのフルパス
    
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?