How to use the percent sign '%' in crontabs

Solution Verified - Updated -

Issue

  • We have scheduled a job in crontab where we want to execute a command with a random sleep and fails to complete. The command works in a shell.
  • Crontab is not working as expected

Environment

  • Red Hat Enterprise Linux (All versions)
  • cronie
  • vixie-cron

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