script - Mount point details on mail with attachments
- Mail message Template ;
oracle@test08:/u02/scripts> cat template.tmp
Space disk details df -h on xxxxxxpl08 server!!!
ip address - 10.10.10.10
- Script details
oracle@test08:/u02/scripts> cat mount_point_mail.sh
df -h | awk '{print strftime("date +%d_%m_%y_%H_%M_%S"), $1, $2, $3,$4,$5}' | column -t >> /u02/scripts/mountpoint_output.log
mailx -a mountpoint_output.log -s " TESTING MOUNT POINT test08 " varun.yadav@xxxx.com<template.tmp
exit
oracle@test08:/u02/scripts>
No comments:
Post a Comment