Re: crontab

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 01/09/2011 04:44 PM, Patrick Dupre wrote:
> Hello,
> 
> To have the same shell running twice a week, I am using crond and
> anacron if I understand correctly. I have a file in /etc/cron.weekly
> (file.cron)
> and I also schedule the same file from crontad -e.
> However, it appears that I have the same file command
> (/etc/cron.weekly/file.cron) started at 2 slightly different times
>  started at Sun Dec 26 03:04:01 GMT 2010
> and at:
> started at Sun Dec 26 03:00:01 GMT 2010
> 
> according to my log files. This is a real problem.
> 
> How, can I run a cron file twice a week ?
> 
> Thank.
> 

Add it to root's crontab with crontab -e

Example:

0 0 * * 0,4 /path/to/command


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCgAGBQJNKj7NAAoJEBgaXYoZ++87JjkH/RkwT11djFSBCBA7gVDiLDNd
ixWmGQ2y/AG9aXVSVkudMKZgHoA6OEsC2tXGlNeGZ9c81bjPo5rqMsNX1AZbAN7E
nm2sPn4er2lYBGtaEQXPk3O2ZpverI4ENgpAUoduXJWy+A7GqDOKFL+h5xgvYWaR
xs3FHUplEfGpMx8dNiUHzrXQB75NoDpiqf02U9AxD//d687avp7g47Q5kELejn/o
Hvgw2IaOaNBKLC7NRRFKPk/y26g4mHtieLaDcJuAP6aEW+QmmkAazC56VHnAOUc4
uTAWMS5vueN5nwt4OENYaodzAUvaZXHGAYz1MCxCu2r8J9tWEZj4oZCmPMyZH+0=
=mxi1
-----END PGP SIGNATURE-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux