Search Results

Search: Posts Made By: fourthe
1,725
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

 

Featured Tech Videos

All times are GMT -4. The time now is 06:21 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy