<div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">> The log command will be executed wherever it is in the template.</div><div class="gmail_extra">> By "current system user", what do you mean? There'll need to be</div><div class="gmail_extra">> write permission for the CGI process, which is probably the same</div><div class="gmail_extra">> identity as the web server process.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I basically changed the ownership of the /var/log/omega directory to</div><div class="gmail_extra">the current user using:</div><div class="gmail_extra"><br></div><div class="gmail_extra">sudo chown `whoami` /var/log/omega</div><div class="gmail_extra"><br></div><div class="gmail_extra">But I forgot to grant write permission to that directory. After</div><div class="gmail_extra">granting the required permission it works fine. By current system</div><div class="gmail_extra">user, I meant the `whoami`.</div><div class="gmail_extra"><br></div><div class="gmail_extra">> Why does it matter? You can dedupe in post-processing, which is</div><div class="gmail_extra">> probably easier than detecting a genuinely new search.</div><div class="gmail_extra"><br></div><div class="gmail_extra">You are right; deduplicating in post-processing seems better option.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Vivek</div></div></div>