一般ユーザー権限でも使える fcron を試してみたのですが、
$ fcrontab -e
16:33:53 fcrontab : editing makio's fcrontab
no fcrontab for makio - using an empty one
(emacs:15316): GLib-WARNING **: In call to g_spawn_sync(), exit status
of a child process was requested but SIGCHLD action was set to SIG_IGN
and ECHILD was received by waitpid(), so exit status can't be
returned. This is a bug in the program calling g_spawn_sync(); either
don't request the exit status, or don't set the SIGCHLD action.
GConf エラー: 設定サーバ (gconfd) に接続できませんでした: いくつか考えられる原因として、ORBit の TCP/IP
ネットワークを有効にしていない、あるいはお使いのシステムで古い NFS
のロックがクラッシュを引き起こしたことが考えられます。これに関連する情報については
http://projects.gnome.org/gconf/ を参照してください: (詳細 - 1:
セッションへの接続に失敗しました: コマンドライン 'dbus-launch
--autolaunch=1ffdc011a8ecd7e593b1761b0706 --binary-syntax
--close-stderr' が非ゼロの終了コード 2655240 で終了しました: )
(emacs:15316): GLib-WARNING **: In call to g_spawn_sync(), exit status
of a child process was requested but SIGCHLD action was set to SIG_IGN
and ECHILD was received by waitpid(), so exit status can't be
returned. This is a bug in the program calling g_spawn_sync(); either
don't request the exit status, or don't set the SIGCHLD action.
16:34:24 could not fflush() file_name: Bad file descriptor
Illegal instruction
となってしまい、fcrontab -l で確認しても crontab ファイルは編集済のはずの行があり
ません。/tmp ディレクトリには、fcr-nOtL5w というファイルがあり、fcrontab -e で記
述した内容そのものが確認できました。
crontab -e では上記のような GConf エラー などのメッセージはでるものの、編集後
正常に crontab ファイルへ書き込め、実行されています。Illegal instruction のような
メッセージも出ません。
以下は、fcron インストール後に設定したファイルですが、これ以外にも何か必要でしょ
うか?マニュアルも英語版しかなくほとんど読めてないので。。。
/etc/rc.conf
fcron_enable=YES
cron_enable=NO
/usr/local/etc/fcron.allow
all
/usr/local/etc/fcron.conf
# The spool directory where fcron stores its files
fcrontabs = /var/spool/fcron
# The locations of the pid file and the fifo file
pidfile = /var/run/fcron.pid
fifofile= /var/run/fcron.fifo
# allow/deny files to determine which users are allowed to use fcrontab
fcronallow = /usr/local/etc/fcron.allow
fcrondeny = /usr/local/etc/fcron.deny
# Location of the programs used by fcron
shell = /bin/sh
sendmail= /usr/sbin/sendmail
# Location of the default editor for fcrontab -e
editor = /usr/local/bin/emacs
--
SAKAMOTO Makio