[ZendTo] Re: problem with ZENDTOPREFS

bbrendon at gmail.com bbrendon at gmail.com
Thu Aug 6 02:24:02 BST 2015


Yup. Did that.

On Mon, Aug 3, 2015 at 2:18 AM, Jules <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 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# /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# echo ZENDTOPREFS
> ZENDTOPREFS
> root at myhost:/etc/cron.d# echo $ZENDTOPREFS
> /usr/local/share/zendto/config/preferences.php
> 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# echo $ZENDTO
> /usr/local/share/zendto
> root at myhost:/etc/cron.d#
>
>
> _______________________________________________
> ZendTo mailing listZendTo at zend.tohttp://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
> Twitter: @JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20150805/c1c2d5d7/attachment.html 


More information about the ZendTo mailing list