Search Results

Search: Posts Made By: fourthe
2,379
Posted By fourthe
ShellScript that emails you size of dir
I have this so far:

#!/bin/sh

FOLDER='/home';
MAXSIZE='50';
MAILADRES='username@server.com';

if [ "du -sm $FOLDER | cut -f 1" > "50" ] ; then
echo "$FOLDER too big" |...
Showing results 1 to 1 of 1

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