[PHP-users 23041]Re: cronからの動作として

Yusuke Ito y-110 @ yumemi.co.jp
2004年 8月 23日 (月) 16:25:37 JST


伊藤です。

とりあえず、

/home/sites/www.domain.jp/web/test/test.php

を直接実行してみたら、原因が分かると思いますよ...

> ■crontab内の設定
> */1 * * * * root /home/sites/www.domain.jp/web/test/test.php
> ※テストで1分置きに実行
> 
> ■実行結果をメール送信
> /home/sites/www.domain.jp/web/test/test.php: ?php: No such file or directory
> /home/sites/www.domain.jp/web/test/test.php: include: command not found
> /home/sites/www.domain.jp/web/test/test.php: include: command not found
> /home/sites/www.domain.jp/web/test/test.php: include: command not found
> /home/sites/www.domain.jp/web/test/test.php: =: command not found
> /home/sites/www.domain.jp/web/test/test.php: line 7: syntax error near
> unexpected token `$db->Connect()'
> /home/sites/www.domain.jp/web/test/test.php: line 7: `$db->Connect();'
> 
> 「No such file or directory」もしくは「command not found」が原因と考えられま
> すが、
> 7行目にエラーと出ています。

+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Yusuke Ito <y-110 @ yumemi.co.jp>



PHP-users メーリングリストの案内