Current time: 05-05-2024, 08:48 PM Hello There, Guest! (LoginRegister)


Post Reply 
domain-traf.log and domain-traf.log.prev differ
Author Message
antencek Offline
Junior Member
*

Posts: 14
Joined: May 2008
Reputation: 0
Post: #2
RE: domain-traf.log and domain-traf.log.prev differ
I know, I know... :-)

I just did this:

In /var/www/ispcp/engine/traffic/ispcp-vrl-traff find routine: sub gen_log_file

In line where: if (diff_command("$main::cfg{'CMD_DIFF'} -a -q $dest_file $dest_file_prev") == 0) {

Replace (or add) with: if (diff_command("$main::cfg{'CMD_DIFF'} -a -q $dest_file $dest_file_prev >/dev/null") == 0) {


The mails were sent by cron because the diff command made text output.
With /dev/null there is no output but the diff_command still receives last executed command status and thus works flawlessly.

Thanks for listening...

Regards,
A
11-13-2008 06:39 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: domain-traf.log and domain-traf.log.prev differ - antencek - 11-13-2008 06:39 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)