Re: OT: cron help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




hello again mike,

On 12/12/2013 10:35 PM, g wrote:
<>
i do not know what op's

    0,1

would do as i have never seen <,> used in any cron commands.

now i do. and when i found it, it did come back to me, in spite
of my 'chemo brain'. ;=)

while watching reruns of 'space 1999', during a commercial,
the use of <,> key hit me and i did recall it from a very long time
ago, so i decided to run a search.

which was;

  https://ixquick.com/do/search?q=%22cron%22+tutorial&lui=english
  About 307,925 results

i found;

=+=+=+=
http://www.tldp.org/LDP/GNU-Linux-Tools-Summary/html/scheduling.html

=+=+=+=
http://www.scrounge.org/linux/cron.html

0,15,30,45 * * * * /usr/bin/foo

Will run /usr/bin/foo every 15 minutes on every hour, day-of-month,
month, and day-of-week. In other words, it will run every 15 minutes
for as long as the machine it running.

=+=+=+=
http://clickmojo.com/code/cron-tutorial.html

How do I run a task every 5 minutes?

One option is to use

MAILTO=cron@xxxxxxxxxxxxxxxxx
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /command/to/execute

However, there is a special shortcut for this:
MAILTO=cron@xxxxxxxxxxxxxxxxx
*/5 * * * * /command/to/execute

The */5 is known as a short form equivalent to 0,5,10,15,20 etc...
and achieves the same effect as the previous example, executing the
command every 5 minutes. Other examples are: */2 would be every 2 mins,
*/30 every 30 minutes and so on. You can use the same short form for
the hour indicator */2 every 2 hours, */6 every 6 hours etc.

=+=+=+=
http://www.unixsurgeon.com/kb/cron-job-tutorial.html

If you want the cron job to run at 1:00 and 2:00 A.M:

* 1,2 * * * /home/username/public_html/mail.sh

This runs your cron at 1A.M and 2A.M every day, every month and every week.

=+=+=+=

i hope that helps you more with your cron.

later.

--

peace out.

in a world with out fences, who needs gates.

tc.hago.

g
.

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux