Jump to content

Get eset odscan return code


Go to solution Solved by Marcos,

Recommended Posts

Can i get eset odscan command line return value in php script? 

We are using Eset File Security v4 command line scaner in php script to get scan result at the moment:

exec("/opt/eset/esets/sbin/esets_scan --clean-mode=none " . $fileToScan . " 2>&1", $output, $scanReturnCode);

at it saves output in $scanReturnCode variable.

By the way, if we try to use odscan from eset file security v8:

exec("/opt/eset/efs/bin/odscan --scan --profile=\"@Smart scan\" --readonly /var/www/shared/cpprod.error.log 2>&1", $output, $scanReturnCode);

It does not save output in $scanReturnCode variable.

Link to comment
Share on other sites

Sorry, help is not longer needed. I just needed to use @In-depth scan profile to scan for eicar test file in archives.  So:

exec("/opt/eset/efs/bin/odscan --scan --profile=\"@In-depth scan\" --readonly /var/www/test/eicarcom2.zip 2>&1", $output, $scanReturnCode);

is working like a charm!

Maybe this will help someone🙂

Archive that I've tested can be found in attachments.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...