Sponsored Content
Top Forums Shell Programming and Scripting Create automated scan of specific directory using bash Post 302989056 by Peasant on Friday 6th of January 2017 02:12:11 PM
Old 01-06-2017
On linux systems clamav implements a system to watch directories using inotify subsystem.

You might want to check that out :
http://blog.clamav.net/2016/03/confi...in-clamav.html
This User Gave Thanks to Peasant For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

create user with RWX access to a specific directory in Solaris 10

I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that? Thanks (5 Replies)
Discussion started by: gsander
5 Replies

2. Shell Programming and Scripting

Create a specific bash to increase the automatic update on my pi

hi everyone, I just began to be interested about the bash access. I buy a time ago a Raspberry pi, I installed raspbmc and now I would like build a bash to copy everyday all new files inside my server directly on the hard drive in my Pi. So my HDD is directly plug on my pi with usb connect,... (4 Replies)
Discussion started by: nagito34
4 Replies

3. Solaris

Limit bash/sh user's access to a specific directory

Hello Team, I have Solaris 10 u6 I have a user test1 using bash that belong to the group staff. I would like to restrict this user to navigate only in his home directory and his subfolders but not not move out to other directories. How can I do it ? Thanks in advance (1 Reply)
Discussion started by: csierra
1 Replies

4. Shell Programming and Scripting

Bash to create new directory by date followed by identifier and additional subdirectories

I have a bash that downloads a list and if that list has data in it then a new main directory is created (with the date) with several subdirectories (example1, example2, example3). My question is in that list there are portion of specific file types (.vcf.gz) - identifier towards the end that have... (0 Replies)
Discussion started by: cmccabe
0 Replies

5. Shell Programming and Scripting

Bash to select panel then specific file in directory

I am using bash to prompt a user for a choice using: where a "y" response opens a menu with available panels that can be used. while true; do read -p "Do you want to get coverage of a specific panel?" yn case $yn in * ) menu; break;; * ) exit;; * ) echo... (6 Replies)
Discussion started by: cmccabe
6 Replies

6. Shell Programming and Scripting

Bash to list all folders in a specific directory

The below bash is trying to list the folders in a specific directory. It seems close but adds the path to the filename, which basename could strip off I think, but not sure why it writes the text file created? This list of folders in the directory will be used later, but needs to only be the... (5 Replies)
Discussion started by: cmccabe
5 Replies

7. Shell Programming and Scripting

Bash directory loop, but only choose those folders with specific word in it

Hello, how in bash i can get directory loop, but only choose those folders with specific word in it, so it will only echo those with specific word #!/bin/bash for filename in /home/test/* do if ; then echo $filename; fithx! (4 Replies)
Discussion started by: ZerO13
4 Replies

8. Shell Programming and Scripting

Bash to create sub directories from specific file extension

In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Discussion started by: cmccabe
2 Replies

9. Shell Programming and Scripting

Create directory and sub-directory with awk and bash

In the below I am trying to create a parent directory using the R_2019 line from f1 if what above it is not empty. I then create sub-directories under each parent if there is a match between $2 of f1 and $2. Inside each sub-folder the matching paths in $3 and $4 in f2are printed. If there is no... (2 Replies)
Discussion started by: cmccabe
2 Replies

10. Shell Programming and Scripting

Bash to check directory and create missing folder from file

In the below bash I am trying to ensure that all folders (represented by $folders) in a given directory are created. In the file f1 the trimmed folder will be there somewhere (will be multiple trimmed folders). When that trimmed folder is found (represented by $S5) the the contents of $2 printed... (19 Replies)
Discussion started by: cmccabe
19 Replies
clamav-unofficial-sigs(8)					  SCRIPT COMMANDS					 clamav-unofficial-sigs(8)

NAME
clamav-unofficial-sigs - Download, test, and install third-party ClamAV signature databases. SYNOPSIS
clamav-unofficial-sigs [options] DESCRIPTION
clamav-unofficial-sigs is a shell script that updates the Sanesecurity, SecuriteInfo, MalwarePatrol, OITC, INetMsg and ScamNailer third- party signature databases for ClamAV. OPTIONS
This script follows the standard GNU command line syntax. A summary of the options is shown below. -b Add a bypass signature entry to local.ign in order to temporarily resolve a false-positive issue with a third-party signature. The script will monitor any entries it makes to local.ign and will automatically remove bypass entries if either the original signature has been modified or removed from the database. -c FILE-NAME Source configuration information from a different file. -d Decode a hexadecimal encoded string or an individual ClamAV 3rd-party signature for viewing. This will not decode image signatures nor the official signatures. -e Encode a entire input string in hexadecimal for signature usage in any *.ndb database. -f Encode a formated input string in hexadecimal that contains spacing field '{}, (), *', without encoding the spacing fields, for sig- nature usage in any '*.ndb' database. -g FILE-NAME Verify the GPG signature for a specific SaneSecurity database file. Only specify the filename as listed in the configuration file and the script will search for it in the work directory. -h Print the script help and usage information. -i Print system and script configuration information. -m Make a hexadecimal signature database file (*.ndb) from a clear text ascii file. Provides support for both full and formatted sig- natures. Additional information is provided when using the flag. -r Remove the clamav-unofficial-sigs script and all of its associated files, databases and work directories from the system. -s FILE-NAME Test the integrity of a third-party signature database with clamscan. Only specify the filename as listed in the configuration file and the script will search for it in the work directory. -t If HAM directory scanning is enabled in the script's configuration file, then output the names of any third-party signatures that triggered during the HAM directory scan. -v Print the script version and date information. SEE ALSO
clamd(8), clamscan(1) COPYRIGHT
Bill Landry <bill@inetmsg.com> LICENSE
BSD (Berkeley Software Distribution) BUGS
Report bugs to Bill Landry <bill@inetmsg.com> AUTHOR
Bill Landry <bill@inetmsg.com> Version 3.7.1 June 6, 2010 clamav-unofficial-sigs(8)
All times are GMT -4. The time now is 04:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy