Re: printing to motd
On 27/01/2001 at 10:34 -0500, RAccess wrote:
> edit /etc/motd. Now next up, I have to clean up the output from 'quota'.
> Something along the lines of:
>
> You have used 40.2Mb of your quota of 500Mb (hard limit: 510Mb)
>
I don't use quotas, so I don't know if this is correct:
#!/bin/sh
set `quota | tail -1`
echo "You have used ${2} KB of your quota of ${3} KB (hard limit: ${4} KB)"
Inapropriate solution, I know... :)
Regards, sena...
--
sena@smux.net, http://sena.u.smux.net/
gpg fingerprint: F20B 12A8 A8F6 FD1F 9B1D BA62 C424 8E73 DD2E 47C8
SMUX - http://www.smux.net/
Reply to: