<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm 100% sure it works for others.<br>
<br>
export ZENDTOPREFS=/opt/zendto/config/preferences.php<br>
/opt/zendto/sbin/cleanup.php<br>
<br>
should work.<br>
<br>
Like this does for me:<br>
<tt># export ZENDTOPREFS=/opt/zendto/config/preferences.php</tt><tt><br>
</tt><tt># /opt/zendto/bin/listusers.php</tt><tt><br>
</tt><tt>#</tt><tt><br>
</tt><br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 06/08/2015 02:24, <a class="moz-txt-link-abbreviated" href="mailto:bbrendon@gmail.com">bbrendon@gmail.com</a>
wrote:<br>
</div>
<blockquote
cite="mid:CADrfcdachfMTCdL0ZcWctgaVuOObA2Jqq9GMMui5JyrYOYDWng@mail.gmail.com"
type="cite">
<div dir="ltr">Yup. Did that.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 3, 2015 at 2:18 AM, Jules <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:Jules@zend.to" target="_blank">Jules@zend.to</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Did you<br>
<br>
export ZENDTOPREFS<br>
<br>
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.<br>
<br>
Jules.
<div>
<div class="h5"><br>
<br>
<div>On 31/07/2015 20:40, <a moz-do-not-send="true"
href="mailto:bbrendon@gmail.com" target="_blank">bbrendon@gmail.com</a>
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Looks like it doesn't work as
described?
<div>also, /usr/local/share/ZendTo-4.12-5 is
symlinked to /usr/local/share/zendto so they
are the same paths.<br>
<div><br>
</div>
<div>
<div><a moz-do-not-send="true"
href="mailto:root@myhost:/etc/cron.d#"
target="_blank">root@myhost:/etc/cron.d#</a>
/usr/bin/php $ZENDTO/sbin/cleanup.php</div>
<div>PHP Notice: Undefined index: ZENDTOPREFS
in
/usr/local/share/ZendTo-4.12-5/sbin/cleanup.php
on line 4</div>
<div><br>
</div>
<div> usage:</div>
<div><br>
</div>
<div>
/usr/local/share/zendto/sbin/cleanup.php
<ZendTo preferences.php file></div>
<div><br>
</div>
<div> The ZendTo preferences.php file path
should be canonical, not relative.</div>
<div> Alternatively, do</div>
<div> export ZENDTOPREFS=<full file
path of preferences.php></div>
<div>
/usr/local/share/zendto/sbin/cleanup.php</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="mailto:root@myhost:/etc/cron.d#"
target="_blank">root@myhost:/etc/cron.d#</a>
echo ZENDTOPREFS</div>
<div>ZENDTOPREFS</div>
<div><a moz-do-not-send="true"
href="mailto:root@myhost:/etc/cron.d#"
target="_blank">root@myhost:/etc/cron.d#</a>
echo $ZENDTOPREFS</div>
<div>/usr/local/share/zendto/config/preferences.php</div>
<div><a moz-do-not-send="true"
href="mailto:root@myhost:/etc/cron.d#"
target="_blank">root@myhost:/etc/cron.d#</a>
ls -l
/usr/local/share/zendto/config/preferences.php</div>
<div>-rw-r--r-- 1 user root 15622 Jul 31
10:53
/usr/local/share/zendto/config/preferences.php</div>
<div><a moz-do-not-send="true"
href="mailto:root@myhost:/etc/cron.d#"
target="_blank">root@myhost:/etc/cron.d#</a>
echo $ZENDTO</div>
<div>/usr/local/share/zendto</div>
<div><a moz-do-not-send="true"
href="mailto:root@myhost:/etc/cron.d#"
target="_blank">root@myhost:/etc/cron.d#</a></div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
ZendTo mailing list
<a moz-do-not-send="true" href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a>
<a moz-do-not-send="true" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
<br>
<pre cols="72">Jules
--
Julian Field MEng MBCS CITP CEng
'All programs have a desire to be useful' - Tron, 1982
<span class="HOEnZb"><font color="#888888"><a moz-do-not-send="true" href="http://www.Zend.To" target="_blank">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
</font></span></pre>
</blockquote>
</div>
<br>
_______________________________________________<br>
ZendTo mailing list<br>
<a moz-do-not-send="true" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br>
<a moz-do-not-send="true"
href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto"
rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MACM MIEEE MBCS MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.ScamNailer.info">www.ScamNailer.info</a>
Get the MailScanner book for free at <a class="moz-txt-link-abbreviated" href="http://www.MailScanner.info">www.MailScanner.info</a>
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
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
</pre>
</blockquote>
</body>
</html>