ubuntu-server-10-04:fetchmail
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
ubuntu-server-10-04:fetchmail [2010/10/28 15:07] – 作成 admin | ubuntu-server-10-04:fetchmail [2010/10/28 15:47] (現在) – admin | ||
---|---|---|---|
行 14: | 行 14: | ||
~/ | ~/ | ||
+ | このファイルにはパスワードが直接記述されるので、パーミッションは600あたりで。 | ||
+ | fetchmail は設定でデーモン化できるが今回は cron を使用する。こんなスクリプトを cron で定期的に実行する。 | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | # Fetchmail cron script | ||
+ | LOCK_FILE=" | ||
+ | |||
+ | if [ -f ${LOCK_FILE} ]; then | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | touch ${LOCK_FILE} | ||
+ | fetchmail -s > /dev/null 2>&1 | ||
+ | rm -f ${LOCK_FILE} | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== 参考 ====== | ||
+ | |||
+ | [[http:// | ||
ubuntu-server-10-04/fetchmail.1288246045.txt.gz · 最終更新: 2010/10/28 15:07 by admin