Search Results

Search: Posts Made By: sdhn1900
Forum: Programming 04-20-2011
2,500
Posted By sdhn1900
Disk Monitor
#!/usr/bin/perl

use strict;
use warnings;
use Filesys::DiskSpace;

# file system to monitor
my $dir = "/opt";

# warning level
my $warning_level=10;

# email setup
my...
3,994
Posted By sdhn1900
diff (only difference in two files)
OS : SuSE Linux 10 (zOS)
I create two files test1 and test2

/home/me # more test1
1 2 3 4 5

/home/me # more test2
1 2 3

I entered the following command on cronjob and its work

diff...
1
1,857
Posted By sdhn1900
diff
OS : SuSE Linux 10 (zOS)
I create two files test1 and test2

/home/me # more test1
1 2 3 4 5

/home/me # more test2
1 2 3

I entered the following command on cronjob and its work

diff...
4,379
Posted By sdhn1900
so code will be as below: ...
so code will be as below:




SrchKey="SRVE0242I:| error| hang"
LogFile=/PATHtemOut.log
MailTo="DN@mail.com
http:// ! -f PATH/alert.last (http://%20%21%20-f%20path/alert.last) && touch...
4,379
Posted By sdhn1900
Any feedback will be appreciated
Any feedback will be appreciated
4,379
Posted By sdhn1900
track the errors in log file
OS: SuSE Linux Enterprise Server 10

Goal:
To track the errors in log file, If they exits users will be notify by email.

We have a script below:
SrchKey="SRVE0242I:"
LogFile=/PATHtemOut.log...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 07:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy