Why script runs on terminal but does not run when scheduled as cron job?

Solution Verified - Updated -

Issue

  • Why script runs on terminal but does not run when scheduled through cron?
  • Why script does not execute through cron?
  • PATH variable in script for cron job is set as follows :
PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/root/bin

Environment

  • Red Hat Enterprise Linux
  • Cronie

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.