1
2

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.

さくらでcronの実行

Posted at

スクリーンショット 2022-01-11 17.43.27.png

さくらサーバーでcronの設定を行いました。

  • 実行コマンドについて
    • cd /home/アカウント/www/app/batch;
      • これで、対象のディレクトリまで移動します
      • 今回はphpで実行したいので、 /usr/local/bin/phpがプログラムのコマンドパスになります(参照1)
      • 黒塗り.phpが実行するファイルになります
  • 実行日時は上記の設定だと2分毎に実行されます

参考
https://usortblog.com/sakuracron/

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?