0
0

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 1 year has passed since last update.

Red hat Linux cron

Posted at

Red Hat Linuxでcronを使用してスクリプトFoo.shを3分ごとに実行するには、以下の手順を実行します。

  1. Cronジョブを編集:

    • ターミナルで crontab -e を実行して、cronジョブを編集します。
  2. ジョブの追加:

    • エディタで新しい行を追加して、3分ごとに実行するジョブを設定します。
    */3 * * * * /path/to/Foo.sh
    
    • この例では、*/3 * * * * は3分ごとを指定しています。
  3. エディタの保存と終了:

    • 保存してエディタを終了します。通常は Ctrl + X を押して、Y を押してから Enter キーを押します。

これで、Foo.shスクリプトが3分ごとに実行されるようになります。必要に応じて、スクリプトのパスや実行権限に注意して設定してください。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?