Hi all,
I currently have the free version of Avast and was wondering if it supports scanning a targeted file via terminal command? If so, can someone point me to the commands?
Thank you,
Jon ![]()
Hi all,
I currently have the free version of Avast and was wondering if it supports scanning a targeted file via terminal command? If so, can someone point me to the commands?
Thank you,
Jon ![]()
Hello,
you can use āscanā command; see āman scanā
Kind regards,
Ondrej Kolacek
Hi Ondrej,
Thank you for your reply. Iām sorry to say that I donāt understand your answer. I did try opening terminal and typing āman scanā but the information the showed didnāt seem to be related to Avast.
Thank you,
Jon
Hello,
we install manual pages of scan command; maybe something else does it also. This should display it:
man /Applications/Avast.app/Contents/Backend/doc/scan.1
regarding the scan binary, we install a link to
/usr/local/bin/scan
but the binary is at
/Applications/Avast.app/Contents/Backend/utils/scan
you can run this for help:
/Applications/Avast.app/Contents/Backend/utils/scan -h
Kind regards,
Ondrej Kolacek
Hi Ondrej,
Again, thank you for your reply. After trying to make sense of this, I still donāt understand (Iām a newbie at this).
Can you please provide the full command to scan a file that is, letās say, on the desktop of the Mac?
Thank you,
Jon
jmorgan2 - why you need it? Iād recommend to use user interface. Click the āmagnifying glassā next to āSmart Scanā button. on main dashboard. You can then use āTargeted Scanā to scan a file.
There is a āScan with Avastā menu item available in right click menu in Finder. Click the file you want to scanā¦
Also drag and drop a file to Avast icon in the Dock will start the Targeted scanā¦
Hi Lukas,
I would like to use a command line because the Mac in question is my FTP server and the FTP server software has the ability to run commands on files after they are uploaded in an automated fashion.
I donāt have time to sit in front of my FTP server every time a file is uploaded to manually scan it.
Thanks,
Jon
ok, I assume that your use case is a bit different than just relying on Avastās file shield which automatically scans files that are written, read or executed.
Correct. I donāt want AV software potentially interfering with FTP operations. Upon installing Avast, I would perform a full disk scan and after that, disable the shields and rely on a command line function to scan an uploaded file after it has finished uploading.
Can anyone give me the full command necessary to achieve scanning a file on the desktop?
Thanks,
Jon
Anyone?
Thanks,
Jon
Probably run
scan /path/to/directory/or/file
and check the return value. See āscan -hā for more info.
Hi Ondrej,
I get a ā-bash: scan: command not foundā when I try either command.
Thanks,
Jon