| Date: | Mon, 22 May 2006 11:39:07 -0700 |
| Reply-To: | David L Cassell <davidlcassell@MSN.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | David L Cassell <davidlcassell@MSN.COM> |
| Subject: | Re: IS there anyway/command of getting the unix server space |
| In-Reply-To: | <200605202145.k4KAkYln011823@mailgw.cc.uga.edu> |
| Content-Type: | text/plain; format=flowed |
|---|
chandu.isi@GMAIL.COM wrote back:
> Thanks for your quick responses.
>
>Hi David, I also need 2nd one from " Do you just want a quick df? Or
>do you want to pull out space usage for each user, and then mail that
>user with a not about space usage?" so that I can send warning to the
>users who are using more space :-)
So. What *exactly* do you want to do here? Do you want to look
through a single directory tree, or several? One partition, or several?
What rules for 'ownership' do you want to enforce - personal files,
group ownership, ACLs, or what? Do you want to email all users, or
only users with more than K% of the total space, or only users with
more than X megs of space taken up, or only users who have used
up N% of their allotted disk space? What SMTP server will this go
through - xmail or sendmail or what?
And, most important of all, why do you want to do this in SAS? This
sort of sysadmin task is why sysadmin-type languages and shells exist.
I would do this in Perl, or in a shell script instead of using SAS.
Or else I would let the company sysadmins do it.
HTH,
David
--
David L. Cassell
mathematical statistician
Design Pathways
3115 NW Norwood Pl.
Corvallis OR 97330
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
|