|
|
我用 vi 创建了个 hamas.cron 文件,用 crontab hamas.cron
调用 hamas.cron 这个文件,内容为
*/2 * * * * lynx -mime_header -auth=user:password "http://www.3322.org/dyndns/update?system=dyndns&hostname=xxxx.3322.org"
目的是要每 2 分钟更新一次 3322.org 动态域名的 ip,因为我的路是内置
路由拨号,直接用
lynx -mime_header -auth=user:password "http://www.3322.org/dyndns/update?system=dyndns&hostname=xxxx.3322.org"
可以很正确的将外网 ip 自动传送至指定的 3322.org,可是我放在 crond
里面却不能做到自动运行。。。
不知道为何,我也将 crond 重新启动过了。 |
|