Advertisement
Advertisement
| 04.06.2008 at 06:11AM PDT, ID: 23299410 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: |
#!/usr/bin/perl
use POSIX;
$hstname = `hostname`;
chomp($hstnm);
open STDOUT,">/var/NetApp_scripts/reports/$hstname".strftime"-%b-%d-%Y".'.txt',localtime or die $!;
/\S/ && !/^==>/ && print while <>;
system('/usr/bin/uuencode ""/var/NetApp_scripts/reports/$hstname".strftime"-%b-%d-%Y".'.txt',localtime" $hstname".strftime"-%b-%d-%Y".'.txt' | mailx -s "$hstname NetApp filesystem report" ashok@domainname.com');
|