için bir dosya izleyin. Bunun için Tek Liner (veya birkaç satır kabuk betiği) var mı?değişim
Güncelleme: Şimdi birileri bir kabuk veya 1 komuta bu iki satır bağlamak nasıl gösterebiliriz eğer
# Check if my.cnf has been changed in the last 24 hours
# if yes, as in the following case, simply send the file
# if it has not been changed in the last 24 hours, do nothing.
# find /etc/ -name my.cnf -mtime 0
/etc/my.cnf
# cat /etc/my.cnf | mail [email protected]
.
-E seçeneği için posta komutunun benim sürümü için kullanılabilir olması için görünmüyor – shantanuo
@shantanuo: İşte çıkış boş olmayan sadece boru [yaklaşık Süper Kullanıcı üzerinde bir sorudur ] (http://superuser.com/q/210054/310). –