Discussion:
[clamav-users] nautilus-actions: is my command for clamscan correct?
Christian
2018-08-11 11:48:32 UTC
Permalink
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
Scott Kitterman
2018-08-11 14:21:30 UTC
Permalink
Post by Christian
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".
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
system: Lubuntu 16.04.5 LTS, 64 bit
I think https://github.com/dave-theunsub/clamtk-gnome is pretty close to, if not exactly, what you are looking for. It's included in the clamtk package in recent Debian (and thus Ubuntu) releases.

Scott K
_______________________________________________
clamav-users mailing list
clamav-***@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http
Scott Kitterman
2018-08-11 15:05:21 UTC
Permalink
Post by Scott Kitterman
Post by Christian
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
Post by Christian
create right-click-entries.
The most important settings are under the tab "command".
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
system: Lubuntu 16.04.5 LTS, 64 bit
I think https://github.com/dave-theunsub/clamtk-gnome is pretty close
to, if not exactly, what you are looking for. It's included in the
clamtk package in recent Debian (and thus Ubuntu) releases.
Scott K
Actually, it's in a separate binary (I'd forgotten). Install clamtk-nautilus.

Scott K
_______________________________________________
clamav-users mailing list
clamav-***@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clama

Loading...