Solved

Cron Syntax

Posted on 2014-03-11
8
298 Views
Last Modified: 2014-03-13
Trying to copy a file to a different location every fifteen minutes.
What am I doing wrong?
15 * * * * cp /data/BB60/control01.ctl /rman/standby/control01.ctl
0
Comment
Question by:xoxomos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 200 total points
ID: 39922299
0,15,30,45 * * * * cp /data/BB60/control01.ctl /rman/standby/control01.ctl
0
 
LVL 35

Assisted Solution

by:Seth Simmons
Seth Simmons earned 50 total points
ID: 39922359
ozo's syntax is correct
your syntax has cp run only 15 min after every hour, not every 15 min
0
 
LVL 23

Assisted Solution

by:savone
savone earned 200 total points
ID: 39922384
*/15 * * * * cp /data/BB60/control01.ctl /rman/standby/control01.ctl

Will also work and is a little cleaner.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:omarfarid
ID: 39922520
On some systems you need to use the full path name for the command used:

*/15 * * * * /usr/bin/cp /data/BB60/control01.ctl /rman/standby/control01.ctl >> /tmp/mycron.log 2&>1
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 50 total points
ID: 39923078
all well just use */15 instead of 15

TY/SA
0
 

Author Comment

by:xoxomos
ID: 39924023
Thanks.  Anybody know how do i increase points?  Not seeing that option.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 39924634
You should have the option to increase points. You could ask for administrator help
0
 

Author Closing Comment

by:xoxomos
ID: 39927694
Thanks all.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question