03-19-2013
The best way to monitor filesystem events is incron (a cron-like utility for filesystem events). I have a script that kicks off when something is written to the anonymous ftp jail (using the write-close flag if I recall correctly) to move the files elsewhere. I also have one that handles web page input without using CGI and the security risks that come with it.
inotify - get your file system supervised
Mike
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I need some help using shell script to edit a file.
My original file has the following format:
/txt/email/myemail.txt
/txt/email/myemail2.txt
/pdf/email/myemail.pdf
/pdf/email/myemail2.pdf
/doc/email/myemail.doc
/doc/email/myemail2.doc
I need to read each line. If the path is... (3 Replies)
Discussion started by: tiger99
3 Replies
2. Shell Programming and Scripting
hello,
i want to make a script to search the file contents in my home directory by a given date and output me the line that has the date... (10 Replies)
Discussion started by: psychobeauty
10 Replies
3. UNIX for Advanced & Expert Users
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Discussion started by: nimu1979
6 Replies
4. Shell Programming and Scripting
OK, best is I explain what the operating enviroment is.
Linux, but Motomagx. It is a Linux operated mobile phone, Motorola V8.
I am writting a shell script, but got stuck.
I have to delete the complete content of file 1 in file 2.
I have attached the 2 files.
You can see that the content of... (2 Replies)
Discussion started by: rasputin007
2 Replies
5. Shell Programming and Scripting
Hi,
I am new to this unix scripting, I got a requirement like..
Files with *.XML extension will be generating in a /home/sample/ folder for every 15 mins. I need to monitor those files in that particular folder for every hour.
If no file has been generated in that particular folder for an... (7 Replies)
Discussion started by: siri_886
7 Replies
6. Shell Programming and Scripting
How can I remove all data that contain domain e.g zzgh@something.com, sdd@something.com.my and gg@something.my in one file? so that i only have data without the domain in the file.
Here is the file structure "test.out"
more test.out
1 zzztop@b.com
1 zzzulll
1 zzzullll@s.com.my
... (4 Replies)
Discussion started by: Mr_47
4 Replies
7. Shell Programming and Scripting
Dear Group,
I'm look for shell script to Monitor CPU usage and send mail once it exceed 75% I'm running Suse10.4. (3 Replies)
Discussion started by: clfever
3 Replies
8. Shell Programming and Scripting
Hi All,
below script reads the perticular files from the directory. Am trying to fetch status and print them in the required format.
It needs to read line and search for string "Passed/Failed" and print them under correct sub header.
script :
BASE_DIR=/tmp/test/REPORT/CollectReport
#... (16 Replies)
Discussion started by: Optimus81
16 Replies
9. Shell Programming and Scripting
Hi Guru's,
I am new to shell scripting. I have a unique requirement:
The system generates a single pdf(/tmp/ABC.pdf) file with Invoices for Multiple Customers, the format is something like this:
Page1 >> Customer 1 >>Invoice1 + invoice 2 >> Page1 end
Page2 >> Customer 2 >>Invoice 3 + Invoice 4... (3 Replies)
Discussion started by: DIps
3 Replies
10. Shell Programming and Scripting
I want to monitor the maillog file in real time and send a mail when a certain grep condition is met. Every time the grep condition is met a mail will be sent. I wish to ignore all grep conditions 30 mins after each mail and thereafter continue monitoring.
For example:
Condition is met, mail... (1 Reply)
Discussion started by: proactiveaditya
1 Replies