Re: Maillog GONE!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 12 March 2003 20:55, Corey Head uttered:
> OK...I did a bad thing.  I decided my maillog was too full, so I "cp
> maillog maillog3112003" and then "touch maillog" and made sure it had the
> same permissions.  Well...it seemed fine, but nothing is getting logged
> now.  I'm fairly new at this Linux thing...so can someone help me out on
> this?

The trick here is not to actually remove the first file.  One of these will do 
(although logrotate should do this anyway).

cat maillog >> maillog3112003; echo >maillog

File says there, but becomes empty.  Contents were dumped into the dated file.

-- 
Jesse Keating RHCE MCSE
http://geek.j2solutions.net
Mondo DevTeam (www.mondorescue.org)

Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=jkeating



-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux