cron に環境変数を渡す

Solution Unverified - Updated -

Issue

  • cron ジョブとして実行するスクリプトで特定の環境変数を使用しようとすると問題が発生します。
  • シェル環境変数を使用または echo する cron スクリプトを実行するオプションは多数あります。

Environment

  • Red Hat Enterprise Linux 6
  • bash
  • ksh
  • cron

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.