[ZendTo] Re: problem with ZENDTOPREFS

Jules Jules at Zend.To
Fri Aug 7 10:03:34 BST 2015


I'm 100% sure it works for others.

export ZENDTOPREFS=/opt/zendto/config/preferences.php
/opt/zendto/sbin/cleanup.php

should work.

Like this does for me:
# export ZENDTOPREFS=/opt/zendto/config/preferences.php
# /opt/zendto/bin/listusers.php
#

Jules.

On 06/08/2015 02:24, bbrendon at gmail.com wrote:
> Yup. Did that.
>
> On Mon, Aug 3, 2015 at 2:18 AM, Jules <Jules at zend.to 
> <mailto:Jules at zend.to>> wrote:
>
>     Did you
>
>     export ZENDTOPREFS
>
>     as it says you should? If you don't do that, programs run from the
>     shell can't read the environment variable you have set.
>
>     Jules.
>
>
>     On 31/07/2015 20:40, bbrendon at gmail.com
>     <mailto:bbrendon at gmail.com> wrote:
>>     Looks like it doesn't work as described?
>>     also,  /usr/local/share/ZendTo-4.12-5 is symlinked
>>     to  /usr/local/share/zendto so they are the same paths.
>>
>>     root at myhost:/etc/cron.d# <mailto:root at myhost:/etc/cron.d#>
>>     /usr/bin/php $ZENDTO/sbin/cleanup.php
>>     PHP Notice:  Undefined index: ZENDTOPREFS in
>>     /usr/local/share/ZendTo-4.12-5/sbin/cleanup.php on line 4
>>
>>       usage:
>>
>>      /usr/local/share/zendto/sbin/cleanup.php <ZendTo preferences.php
>>     file>
>>
>>        The ZendTo preferences.php file path should be canonical, not
>>     relative.
>>        Alternatively, do
>>          export ZENDTOPREFS=<full file path of preferences.php>
>>      /usr/local/share/zendto/sbin/cleanup.php
>>
>>     root at myhost:/etc/cron.d# <mailto:root at myhost:/etc/cron.d#> echo
>>     ZENDTOPREFS
>>     ZENDTOPREFS
>>     root at myhost:/etc/cron.d# <mailto:root at myhost:/etc/cron.d#> echo
>>     $ZENDTOPREFS
>>     /usr/local/share/zendto/config/preferences.php
>>     root at myhost:/etc/cron.d# <mailto:root at myhost:/etc/cron.d#> ls -l
>>     /usr/local/share/zendto/config/preferences.php
>>     -rw-r--r-- 1 user  root 15622 Jul 31 10:53
>>     /usr/local/share/zendto/config/preferences.php
>>     root at myhost:/etc/cron.d# <mailto:root at myhost:/etc/cron.d#> echo
>>     $ZENDTO
>>     /usr/local/share/zendto
>>     root at myhost:/etc/cron.d# <mailto:root at myhost:/etc/cron.d#>
>>
>>
>>     _______________________________________________
>>     ZendTo mailing list
>>     ZendTo at zend.to <mailto:ZendTo at zend.to>
>>     http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>>
>>     Jules
>>
>>     -- 
>>     Julian Field MEng MBCS CITP CEng
>>
>>     'All programs have a desire to be useful' - Tron, 1982
>>
>>     www.Zend.To <http://www.Zend.To> Twitter: @JulesFM PGP footprint:
>>     EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
>     _______________________________________________
>     ZendTo mailing list
>     ZendTo at zend.to <mailto:ZendTo at zend.to>
>     http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
>
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
> Jules
>
> -- 
> Julian Field MACM MIEEE MBCS MEng CITP CEng
> www.ScamNailer.info
> Get the MailScanner book for free at www.MailScanner.info
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> Follow me at twitter.com/JulesFM
>
> Jules
>
> -- 
> Julian Field MEng MBCS CITP CEng
>
> 'Talent is God-given ... be humble;
>   fame is man-given ... be grateful;
>   conceit is self-given ... be careful.' - John Wooden
>
> www.Zend.To
> Twitter: @JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20150807/8a95e083/attachment-0001.html 


More information about the ZendTo mailing list