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
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
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
Summary: It may not be your / (root) file system. Do this command to find out which partition is giving you grief: df -k Then look closely at the percentages, then go to the partition that is max'd out and st...
Summary: Hi All, When I do a "bdf -l /oracle/DTT/sapdata* " it display some file system twice (for example please see sapdata01, sapdata02, sapdata03) . But when I do just "bdf -l" it displays file systems onl...