07-25-2010
yum -y install inotify-tools
while true; do inotifywait -r -e MODIFY dir/ && <script>; done;
Tweak as necessary.
HTH.
This User Gave Thanks to Habitual For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Move a file from windows directory to unix directory, is this possible?
if it is, can someone help me on this?
Thanks! God bless! (1 Reply)
Discussion started by: kingpeejay
1 Replies
2. Shell Programming and Scripting
Hi,
I have a huge directory structure with multiple directories and subdirectories in each of the directory.
i am trying to find the various file extensions in the directory structure and put them into a file.
is there any way through which i can accomplish this (4 Replies)
Discussion started by: itsritish
4 Replies
3. Shell Programming and Scripting
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies
4. Shell Programming and Scripting
Here is a simplified example of my problem. Say I have the following 3 sub-directories;
./folder1
A.txt
A.sh
./folder2
B.txt
./folder3
C.txt
C.sh
I would like to list the directory names which contain both '.txt' & '.sh' type extensions. I have came up with the following code;... (8 Replies)
Discussion started by: mmab
8 Replies
5. UNIX for Dummies Questions & Answers
Hi ,
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
Ex...
abc_0702,
abc_0709,
abc_782
abc_1234 ...etc
need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
7 Replies
6. Shell Programming and Scripting
Hello Unix board community,
I have to program a shell script, but I am a complete noob so I hope I get some help here. The assignment is as follows:
The program removes all comments regardless of formatting or language from files with specific file name extensions (php, css, js, ...).... (3 Replies)
Discussion started by: TheZeusMan
3 Replies
7. Shell Programming and Scripting
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies
8. Shell Programming and Scripting
I am trying to move specific folders and subfolders within a directory using the below. I can see the folders to move and they are at the location, but I am getting an error. Thank you :).
mv -v /home/cmccabe/Desktop/NGS/API/6-10-2016{bam/{validation,coverage},bedtools /media/cmccabe/"My... (6 Replies)
Discussion started by: cmccabe
6 Replies
9. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
10. Shell Programming and Scripting
I am trying to mv each of the .vcf files in the variants folder to the folder in /home/cmccabe/f2 that the .vcf id is found in file. $2 in file will always have the id of a .vcf in the variants folder. The line in blue staring with R_2019 in file up to the -v5.6 will always be an exact match to a... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
yum-updatesd.conf
yum-updatesd.conf(5) yum-updatesd configuration file yum-updatesd.conf(5)
NAME
yum-updatesd.conf - Configuration file for yum-updatesd(8).
DESCRIPTION
yum-updatesd uses a configuration file at /etc/yum/yum-updatesd.conf.
Additional configuration information is read from the main yum.conf (5) configuration file.
PARAMETERS
There is one section in the yum-updatesd configuration file, main, which defines all of the global configuration options.
[main] OPTIONS
The [main] section must exist for yum-updatesd to do anything. It consists of the following options:
run_interval
Number of seconds to wait between checks for available updates.
updaterefresh
Minimum number of seconds between update information refreshes to avoid hitting the server too often.
emit_via
List of ways to emit update notification. Valid values are `email', `dbus' and `syslog'.
do_update
Boolean option to decide whether or not updates should be automatically applied. Defaults to False.
do_download_deps
Boolean option to decide whether or not updates should be automatically downloaded. Defaults to False.
do_download_deps
Boolean option to automatically download dependencies of packages which need updating as well. Defaults to False.
MAIL OPTIONS
email_to
List of email addresses to send update notification to. Defaults to `root@localhost'.
email_from
Email address for update notifications to be from. Defaults to `yum-updatesd@localhost'.
SYSLOG OPTIONS
syslog_facility
What syslog facility should be used. Defaults to `DAEMON'.
syslog_level
Level of syslog messages. Defaults to `WARN'.
FILES
/etc/yum/yum-updatesd.conf
SEE ALSO
yum-updatesd(8) yum.conf(5)
Jeremy Katz yum-updatesd.conf(5)