15
14

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 5 years have passed since last update.

コマンドの結果をログに出力するcron

Posted at

超基本だけど調べても案外出てこなかったからメモ

# 5分おきにコマンドを実行しその結果をログファイルに出力
*/5 * * * * [コマンド] >> /var/log/connection.log 2>&1

定期的にコマンドの結果を出力したいときあるよね。

15
14
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
15
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?