Re: OT: cron help

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/13/2013 09:02 AM, T.C. Hollingsworth wrote:
> On Thu, Dec 12, 2013 at 3:31 PM, Mike Wright <mike.wright@xxxxxxxxxxxxxx>
> wrote:
>> Hi all,
>> 
>> I'm trying to execute a command once a minute.  As a test I place this:
>> 
>> 0,1 * * * * /bin/ping -c1 w.x.y.z > /dev/null 2>&1
>> 
>> in /etc/cron.d/everyMinute
>> 
>> but nothing is happening.  I've done "service crond restart".
>> 
>> Any ideas?
> 
> That "0,1" tells cron to run your command at N:00 and N:01 every hour. You
> want "0-59" instead.

or */1

e.g.

	*/1 * * * * /bin/ping -c1 w.x.y.z > /dev/null 2>&1

All the best,

- -Greg

> -T.C.
> 


- -- 
+---------------------------------------------------------------------+

Please also check the log file at "/dev/null" for additional information.
                (from /var/log/Xorg.setup.log)

| Greg Hosler                                   ghosler@xxxxxxxxxx    |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKqYJkACgkQ404fl/0CV/RyVACgzzsXcWfi3efH9pd7kdj+G/Mq
jOsAoLGutetMqZDlP6jH4qLbHkQVVMmX
=fSMA
-----END PGP SIGNATURE-----
-- 
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