Hi Julian,<br><br>Just a thought that wget_location = `which wget` do the same thing making it independent?<br><br><br><div class="gmail_quote">On Thu, Jun 18, 2009 at 2:04 PM, Julian Field <span dir="ltr"><<a href="mailto:MailScanner@ecs.soton.ac.uk">MailScanner@ecs.soton.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Good point. Fixed.<div class="im"><br>
<br>
On 17/06/2009 12:20, Anthony Peacock wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Julian,<br>
<br>
These work fine, but I think I may have given you a bum steer about the default value that $wget_location should have. I gave you my location, but I think for most Linux distros the location would be: /usr/bin/wget<br>
<br>
It might more sense to have the default set to that and let weirdos like me make the changes rather than have the majority of users having to make changes...<br>
<br>
<br>
<br>
Julian Field wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All done. Thanks for the suggestions!<br>
<br>
Jules.<br>
<br>
On 17/06/2009 11:12, Anthony Peacock wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Julian,<br>
<br>
Installed your updated script yesterday, worked fine after adjusting the paths as suggested. Failed to run as a cron job because my wget is not on the restricted path the cron provides.<br>
<br>
I know this is easily fixed in other ways, but it seems to me that this would be easy to add as a config line at the top of the script:<br>
<br>
wget_location = '/usr/local/bin/wget';<br>
<br>
or somesuch. The other thing that I need to change is the command to restart MailScanner as I use '/etc/init.d/mailscanner restart'. Again, this is not a major problem for me to find and fix, but it seems like this would be a fairly simple config as wel...<br>
<br>
mailscanner_restart = '/sbin/service MailScanner reload';<br>
<br>
Just an idea...<br>
<br>
</blockquote>
<br>
Jules<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br></div>
Jules<br>
<br>
-- <br>
Julian Field MEng CITP CEng<br>
<a href="http://www.MailScanner.info" target="_blank">www.MailScanner.info</a><br>
Buy the MailScanner book at <a href="http://www.MailScanner.info/store" target="_blank">www.MailScanner.info/store</a><br>
<br>
Need help customising MailScanner?<br>
Contact me!<br>
Need help fixing or optimising your systems?<br>
Contact me!<br>
Need help getting you started solving new requirements from your boss?<br>
Contact me!<br>
<br>
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654<br>
Follow me at <a href="http://twitter.com/JulesFM" target="_blank">twitter.com/JulesFM</a> and <a href="http://twitter.com/MailScanner" target="_blank">twitter.com/MailScanner</a><br><font color="#888888">
<br>
<br>
-- <br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.</font><div><div></div><div class="h5"><br>
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website! <br>
</div></div></blockquote></div><br>