.does anyone know how to setup a job for crom to go out and check drive usage and last logon then mail it to the sysadmin Mike
On Thursday 28 February 2002 17:30, you wrote:
.does anyone know how to setup a job for crom to go out and check drive usage and last logon then mail it to the sysadmin
df -h | mail -s "Diskusage $(hostname)" sysadmin@your.domain hth Regards Dan
On Thursday 28 February 2002 17:30, Michael Garabedian wrote:
.does anyone know how to setup a job for crom to go out and check drive usage and last logon then mail it to the sysadmin
oh sorry, i forgot: last | mail -s ... ; > /var/log/wtmp # The last command clears the log. Of course one can go fancier from there., like directing output of both commands to a file, and then mailing the file to sysadmin. I leave that to your creativity. Regards Dan
participants (2)
-
Dan Am
-
Michael Garabedian