Changes between Version 9 and Version 10 of TipAndDoc/cron


Ignore:
Timestamp:
May 19, 2010 10:52:11 AM (14 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/cron

    v9 v10  
    184184}}} 
    185185 
     186 == 実行サンプル == 
     187 * /etc/cron.hourly/crontest 
     188{{{ 
     189#!/bin/sh 
     190 
     191( 
     192/bin/df -h 2>&1 | mail -E -s "Cron <$LOGNAME@`/bin/hostname`> $0" $LOGNAME 
     193) >/dev/null 2>&1 & 
     194}}} 
     195 * mail 
     196{{{ 
     197Mail version 8.1.2 01/15/2001.  Type ? for help. 
     198"/var/mail/mitty": 1 message 1 new 
     199>N  1 root@lucid.mitty.  Wed May 19 10:17   21/903   Cron <root@lucid> /etc/cron 
     200& 
     201Message 1: 
     202From root@lucid.mitty.jp  Wed May 19 10:17:01 2010 
     203X-Original-To: root 
     204To: root@lucid.mitty.jp 
     205Subject: Cron <root@lucid> /etc/cron.hourly/crontest 
     206Date: Wed, 19 May 2010 10:17:01 +0900 (JST) 
     207From: root@lucid.mitty.jp (root) 
     208 
     209Filesystem            Size  Used Avail Use% Mounted on 
     210/dev/sda1             3.8G  903M  2.9G  24% / 
     211none                  243M  168K  243M   1% /dev 
     212none                  247M     0  247M   0% /dev/shm 
     213none                  247M   40K  247M   1% /var/run 
     214none                  247M     0  247M   0% /var/lock 
     215none                  247M     0  247M   0% /lib/init/rw 
     216none                  3.8G  903M  2.9G  24% /var/lib/ureadahead/debugfs 
     217}}} 
     218 
    186219 = 遅延実行テスト = 
    187220 * crontab -l