Cron TEST
cron + wget
Posted by shinobu at 17:34
こんなファイルを作っておく
$ cat receive.sh
#! /bin/sh
/usr/bin/wget --http-user=******** --http-passwd=******** --delete-after http://localhost/Nikki/receive
$ chmod u+x receive.sh
$ crontab -e
0 0-23 * * * /home/moblog/receive.sh
$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.28607 installed on Wed Dec 17 17:21:22 2003)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
0 0-23 * * * /home/moblog/receive.sh
となってればOK?
参考
http://www.nurs.or.jp/~sugi/crontab.htm
さ、テスト。