Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Here is what i have so far:
export DataCollectDirSize=`du -k /opt/trey |awk '{print $1}'`echo 'My Directory size is :' $DataCollectDirSize 'KB'
if [ $DataCollectDirSize -gt 256000 ] ## 250 MB ##
then
How to send an email that the size over the threshold?

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |