[Linux-programlama] Re: crontab: saat ayarý

---------

[Linux-programlama] Re: crontab: saat ayarý

From: Mustafa Ünal <mustafaunl_at_gmail.com>
Date: Sun, 20 Apr 2008 00:04:55 +0300
Message-ID: <480A5E77.9010402@gmail.com>

Anýl KARADAÐ wrote:
> iyi aksamlar,
>
> Sadece cift ve tek saatlerde calýstýrmak istediðim isler bulunuyor. Bunu
> crontab a nasýl tanýmlayacagýmý cozemedim.
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>
http://www.linuxhelp.net/guides/cron/
http://www.linuxmanpages.com/man5/crontab.5.php

If you wanted to run a command every 2 hours you could enter in */2 for
the hour field. This would run the specified command at 2am, 4am, 6am,
8am, 10am, 12pm, 2pm, and so on. An example of this type of entry would be:
"Eðer bir komutu her iki saatte bir çalýþtýrmak istiyorsanýz saat
alanýna */2 girin. Bu komutun saat 2am,4am,6am,8am,10am,12pm,2pm,ve
devamýnda çalýþmasýna saðlýyaxcaktýr Bu duruma örnek girdi :"

0 */2 * * * joey /usr/bin/somecommand >> /dev/null 2>&1

Birde tek saat ne demek ? 1,3,5,9... ise cevap 1-23/2 olmalý.

_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Sat 19 Apr 2008 - 23:17:10 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.