Karl Bongers writes:
> Or when all else fails, break out the real power tools.  This one
> helped me delete 125 million mgetty.ttyS0.1.1.1,etc,etc log files
> today.  Due to 
> a RH7.X bug where logrotate config has this entry:
> /var/log/mgetty.log.tty* { which causes it to multiply like rabbits.

You wasted your time writing a C program.  Learn to use the standard tools:

ls -1 /var/log | grep -E ^mgetty | xargs rm

This is the real power of UNIX :)

-- 
David Phillips <david at acz.org>
http://david.acz.org/


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list