Computing.Net > Forums > Unix > help file system watcher kornshell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

help file system watcher kornshell

Reply to Message Icon

Name: zoef
Date: December 7, 2003 at 09:43:25 Pacific
OS: linux suse 8.2
CPU/Ram: pentium IV 256
Comment:

i want to make a script that monitors and compares my filesytem with a tar archive which holds all the files on my system
What's the best way to start with this ?
Thanks in advance

Zoef



Sponsored Link
Ads by Google

Response Number 1
Name: Frank
Date: December 15, 2003 at 05:38:01 Pacific
Reply:

Zoef,

depends on which event should be monitored.
You could monitor the deletion of a file/directory
and/or the creation of a new file/directory ?
and/or file manipulation.

The best way would not start with an Tar file.
because it wast a lot space and other ressources for a simple list generation.
But if you have good reasone to use a tar file you could start by sample script below:
This script shows you deletet files and directorys.

for file in `tar -tf comp.tar`
do
if [ ! -f $file -a ! -d $file ]
then
echo "$file missing"
fi
done


No Risk no Fun
Frank


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: help file system watcher kornshell

File system full !! Why? & How? www.computing.net/answers/unix/file-system-full-why-amp-how/2329.html

Duplicate file system with bdf -l www.computing.net/answers/unix/duplicate-file-system-with-bdf-l-/6864.html

UNIX file system www.computing.net/answers/unix/unix-file-system/3086.html