[TYPO3-dev] @file_get_contents($url) returns nothing when running script from cronjob
Xavier Perseguers
typo3 at perseguers.ch
Wed Oct 1 17:28:48 CEST 2008
Hi,
>>> Im calling the script like this:
>>>
>>> * * * * * php
>>> /var/www/typo3/my_t3_site/typo3conf/ext/aux_newsmailer/mailer/mailer.sh
>>>
>>> Is that not enough?
>>>
>>> /Brian
>>
>>
>> Probably: no. The directory from which pathes will get resolved is
>> probably either / or the home directory of the user running the
>> script. You need to do an explicit "cd".
>
> Im not sure I understand this - can you show an example?
This means
* * * * * cd /var/www/typo3/my_t3_site && php
typo3conf/ext/aux_newsmailer/mailer/mailer.sh
BTW, your script should be named mailer.phpsh instead of .sh but that's
not a blocking point.
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-dev
mailing list