Why not do an md5sum of all the files you are interested in to a single file? That way, just running md5sum -c checksums-file will do them all in one go. If you look at the file it creates, it will have the checksum and the examined filename in each record so you don't need to keep lots of separate single files and save you the worry of building/using an array.
For clarity, you can spread out your script if that helps, so saving the initial checksums:-
Later you can just md5sum -c /var/lib/md5sums/critical.md5 and you get a nice report about the files previously listed.
i have a unix batch written in c, dealing with really time-consuming
database operations
i want to write a ksh script to monitor its performance.
which items i should monitor?
do you have any suggestions?
1)cputime
2)swap area
3)pmem
4)
5)
what else? (1 Reply)
Hi Gurus,
Need to have a way to monitor Bandwidth utilization on Linux servers, running squid .
Have worked on 3rd party monitoring tools like Bandwidth d, Nagios etc.
But we are working to find out a way to monitor this through Sitescope, for which we need to find a file where the... (4 Replies)
Hi i am am monitioring a file every 60 seconds and checking if the file has changed and if it has changed i append the changes to another file. i am able to monitior the change in file size but i have a problem copying the changes made in the file to another file. i am using lseek to seek the last... (1 Reply)
Hi
Can any one helpe me in obtaining commands , which enables me to know the following :
Monitor Storage
Monitor RAM & CPU Utilization
Monitor Power Supply
Best wishes (1 Reply)
Hi,
I am trying to write a script to do monitoring kind of stuff,
requirement - when a server is given a start it updates a file called server.log, I need to keep on grepping the word "Running" and as soon as it comes , script should be exited with the message , "Server came up... (2 Replies)
Hi All,
I am writing a tool which remotely monitors network devices and sends an alarm if the device does not respond just like an NMS.
Can I use Threads module and invoke a simultaneous ping/snmpwalk to 100 or more devices and raise an alarm if any of the devices do no respond?
Please... (1 Reply)
Hello All,
I have written a script which will grep for error codes in a file and if the count for the same is about 500 it will send and smpp alert.
Here is my code.
#!/bin/bash
#########################################################################################################... (3 Replies)
I currently have a shellscript to check the size of a filesystem and email me if the size is over a certain percentage (80%). I have this script on crontab and executes the shell every 10 mins.
I have the above in place on 8 servers. It so happens that a file system on one of the servers is... (1 Reply)
Hi,
i have joined newly as a hp-ux admin... previously worked in linux environment
can anyone tell me how to monitor memory and cpu utilization in hpux??
hp-ux is not as flexible as linux as i understand... please help me out by giving the commands needed and way of troubleshooting if the... (12 Replies)
Discussion started by: Prasad@hp-ux
12 Replies
LEARN ABOUT DEBIAN
dpatch
DPATCH(7) dpatch DPATCH(7)NAME
debian/patches/script.dpatch - self applying patch
SYNOPSIS
debian/patches/script.dpatch -patch [directory]
debian/patches/script.dpatch -unpatch [directory]
debian/patches/script.dpatch -pkg-custom [directory]
DESCRIPTION
A dpatch is a program that modifies the source tree in a given directory. How it does that is entirely up to the person writing it. It can
be a script that calls patch(1) with the appropriate options, a complicated perl script that does some deep magic, or anything else. The
only requirement is that it MUST accept the -patch and -unpatch options, followed by the destination (or working) directory, when speci-
fied. For the sake of compatibility, the second argument is only present when a working directory was explicitly set with dpatch --workdir.
For some of the dpatch(1) features to work, the script should follow a common style: there should be a line near the top of the file with
the following format: "filename -- author <email>". And one or more "# DP: description" lines. These will be used by dpatch cat for exam-
ple.
WARNING
dpatch is deprecated, please switch to the `3.0 (quilt)' Debian source package format instead. See http://wiki.debian.org/Projects/Deb-
Src3.0#FAQ for a short guide on how to do it.
EXAMPLES
One can find dpatch examples under /usr/share/doc/dpatch/examples/.
AUTHOR
This manual page was written by Gergely Nagy.
SEE ALSO dpatch(1), dpatch.make(7), dpatch-edit-patch(1), dpatch-list-patch(1), dpatch-convert-diffgz(1)DPATCH 2 Dec 13 2011 DPATCH(7)