[clamav-users] nautilus-actions: is my command for clamscan correct?
Christian
abelschreck3 at freenet.de
Sat Aug 11 11:48:32 UTC 2018
Hi altogether,
What I want to achieve is create a /context-menu/ (rightclick)-entry for
scanning files with the *clamscan*-command.
For ubuntu there is a tool called _"nautilus-actions_". With it one can
create right-click-entries.
The most important settings are under the tab "command".
So I configured it this way:
path: xterm
parameter: -fa 'Monospace' -fs 12 -hold -e clamscan %f
working directory: %d
The parameter options are thus: -fa 'Monospace' -fs 12 (setting font and
font-size)
: -hold (preventing xterm from shutting
down immediately)
: -e (executing the following command
within xterm)
: clamscan %f ((first) filename)
Actually this works very well.
When right-clicking on the file to be scanned and clicking on the
respective label (I called it "Dateiscannen") a separate xterm-window
opens and after the scan is
finished the result is displayed until I manually close the xterm-window.
Yet I´ve noticed that I can also scan folders with that command (but not
recursively of course, due to the very nature of the specified command).
It´s always said that everything can be considered to be a file in
Linux. So theoeretically a folder is a file as well and therefore the
/"%f"-parameter/ should be fine
for scanning folders, too.
My question is: Am I right in thinking so or should I use another option
than "%f" or folder-scan?
Thanks a lot in advance.
Greetings
Rosika
P.S.:
system: Lubuntu 16.04.5 LTS, 64 bit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20180811/f70476a6/attachment.htm>
More information about the clamav-users
mailing list