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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content