merhaba
-r Remove the current crontab.
Eger -r demisseniz su an ki kullanici crontab'iniz silinmis olmali. Eger
kullanici (root) crontab'inda bir entry yoksa tabi sorun degil.
Diger bir husus da /etc/crontab sistemin kendi crontab'i. Onu vi ile
edit edip cron job eklemeniz cok dogru degil.
# crontab -e
Bu komutu kullanin. Bulundugunuz user'a ozel cron job ekler.
Asagidaki sizin aldiginiz hata root kullanicisini calisacak program
olarak beklemektedir.
bu dosyanin formati bu sekilde
#minute hour mday month wday who command
crontab -e ile eklediginiz de who olmayacak, onun yerine command olacak
dogrudan. who olmama sebebi acik. O an ki kullaniciniz ne ise onun adina
eklenecektir.
#minute hour mday month wday command
Yani sistem crontab i ile kullanicilarin crontab i farkli formattadir.
Fakat herhangi bir sekilde /etc/crontab'a entry eklemisseniz bunu aktif
etmek icin ayrica bir komut vermenize gerek yok.
# crontab /etc/crontab
Bunu yapmaniz yanlis. Sadece ekleyin, o kendisi bunu yukleyecektir. Bu
komutu verirseniz /etc/crontab taki entry'lerin root kullanicisinin
entry'lerine eklenmesine neden olmus oluruz. Ki formatlar tutmatdigi
icin hata gelmesi normaldir.
crontab -r deyince duzelmesi sundan, eklediginiz bu cron joblari root
crontab'indan silmis oldunuz.
selamlar...
Baris Simsek
http://www.enderunix.org/simsek/
Yayinevi: http://www.acikakademi.com
endersys: http://www.endersys.com
Bedreddin ÞAHBAZ wrote:
Merhabalar,
crontab -r
komutunu verince duzeldi.
Saygilarimla..
--- Bedreddin �AHBAZ <[EMAIL PROTECTED]>
wrote:
Merhabalar,
Qsheff icin bir qsheff-mrtg.cfg dosyasi olusturdum.
Bunu crontab a ekledim. Ekledigim andan beri bana
hata
mesajlari gelmeye basladi. Mesajlar soyle;
Konu: Cron <[EMAIL PROTECTED]> root /usr/libexec/atrun
G�nderen: "Cron Daemon" <[EMAIL PROTECTED]>
Tarih: 11 Haziran 2006, Pazar, 5:15 pm
Al�c�: [EMAIL PROTECTED]
root: not found
Surekli bu hatalar geliyor. Crontab dosyasinin
icerigi
de soyle;
# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.32 2002/11/22
16:13:39
tom Exp $
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday who
command
#
*/5 * * * * root
/usr/libexec/atrun
#
# Save some entropy so that /dev/random can re-seed
on
boot.
*/11 * * * * operator
/usr/libexec/save-entropy
#
# Rotate log files every hour, if necessary.
0 * * * * root
newsyslog
#
# Perform daily/weekly/monthly maintenance.
1 3 * * * root
periodic daily
15 4 * * 6 root
periodic weekly
30 5 1 * * root
periodic monthly
#
# Adjust the time zone if the CMOS clock keeps local
time, as opposed to
# UTC time. See adjkerntz(8) for details.
1,31 0-5 * * * root
adjkerntz -a
#Bu cron isi 5 dakikada bir Qsheff loglarini MRTG
ile
grafige doker..
*/5 * * * * root
/usr/local/bin/mrtg
/betikler/qsheff-mrtg/qsheff-mrtg.cfg
Neden hatalar geliyor. Diger cron isleri de hata
veriyor. Ben ornek olarak bunu verdim..
Saygilarimla..
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
---------------------------------------------------------------------
Cikmak icin, e-mail:
[EMAIL PROTECTED]
Liste arsivi: http://lists.enderunix.org
Turkiye'nin ilk FreeBSD kitabi:
http://www.acikakademi.com/freebsd.php
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
Cikmak icin, e-mail: [EMAIL PROTECTED]
Liste arsivi: http://lists.enderunix.org
Turkiye'nin ilk FreeBSD kitabi: http://www.acikakademi.com/freebsd.php
---------------------------------------------------------------------
Cikmak icin, e-mail: [EMAIL PROTECTED]
Liste arsivi: http://lists.enderunix.org
Turkiye'nin ilk FreeBSD kitabi: http://www.acikakademi.com/freebsd.php