cat /dev/null > /path/to/logfile
AJ
Sent from my Google Android
--
Utah Ruby Users Group
ur...@googlegroups.com
http://groups.google.com/group/urug/
- All meeting times and places can be found here.
** Please prefix your subject with "[JOB]" if your message is about job opportunities.
$ >log/production.log
I believe rails will seek to the end before writing the next log entry
(if it didn't then it would end up with a large hole in the file
before the next write so ls still shows the large file size...) use du
<file> if in doubt to get the real disk usage.
> --
> Utah Ruby Users Group
> ur...@googlegroups.com
> http://groups.google.com/group/urug/
> - All meeting times and places can be found here.
>
> ** Please prefix your subject with "[JOB]" if your message is about job opportunities.
>
--
Brad Midgley
Thanks,
BJ
[1]: http://gd.tuwien.ac.at/linuxcommand.org/man_pages/logrotate8.html
Further, you'll have the option to use tools to analyze your logs,
like zenoss or splunk.
Tim