Jump to content

Configure ClamAV's OnErrorExecute


Tim
 Share

Recommended Posts

Hi,

Possibly there's someone here more experienced than I am with configuring the 'OnErrorExecute' option in freshclam.conf.

What I want to achieve is that, when freshclam isn't able to update the virus definition for some reason, a (powershell) script is ran that calls an internal API.  The way I have configured it now in freshclam.conf is as follows:

OnErrorExecute powershell.exe "D:\Updatelog.ps1"

I'm trying to force an error by disconnecting my computer from the internet. That way it doesn't seem to do anything. When I run this exact line (excluding the 'OnErrorExecute', of course) in a command prompt window, it works like a charm, and the API is called. My suspicion is that I'm using the wrong format for this property to trigger the command, but that is just a guess.

Does anyone know how to do this?

Thanks in advance,

Kind regards,

Tim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...