Enterprise Manager Generic (MOSC)

MOSC Banner

Issue with converting a cron job to an OEM scheduler job

edited Jan 9, 2020 2:06PM in Enterprise Manager Generic (MOSC) 3 commentsAnswered ✓

I am in the process of converting all of our Oracle Linux cron jobs to scheduler jobs in OEM13. I have had no issue with any of the cron jobs until I tried to convert this one:

00 02 * * * /crons/update.scr > /crons/logs/update.`/usr/bin/date +\%a` 2>&1

When i try to paste this line into the OEM Create Job/Parameters tab "Command" box:   /crons/update.scr > /crons/logs/update.`/usr/bin/date +\%a` 2>&1

I get this error: Command - The following property is incorrectly specified: %a` 2>&1

That line works successfully if I cut and paste it directly on the oracle linux server. I suspect that OEM does not like the % in the command line. What the cron job does is create a log file called update.<day of the week> Is the % character the cause of the error? What syntax should I use for OEM?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center