GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BIGFILE(1) FreeBSD General Commands Manual BIGFILE(1)

bigfile
kill (or signal) a process when a file grows too big

bigfile [
-v
] [
-S signal
] [
-w interval
] -p pid -s maxsize filename

The bigfile utility examines a file periodically and sends a signal to a process when the file reaches the specified size.
Options:
The process ID to signal.
The signal number or name to send; default: TERM.
The file size limit.
The wait interval in seconds; default: 5.
Verbose operation; display diagnostic messages.

The bigfile utility exits 0 on success, and >0 if an error occurs.

The operation of the bigfile utility is currently not affected by environment variables.

The operation of the bigfile utility is currently not affected by any files.

Kill a tcpdump process when its output goes over 100 KB:
bigfile -p `pgrep tcpdump` -s 102400 traffic.tcp
Send a hangup signal to a daemon as soon as possible if it's been too verbose:
bigfile -S HUP -w 1 -p `cat /var/run/d.pid` -s 8000 /var/log/d.log

kill(1), sleep(1), stat(1)

The bigfile utility was written by Peter Pentchev in 2010.

Peter Penchev ⟨roam@ringlet.net⟩

No, thanks! Still, if you should find any, please report them to the author :)

*
Parse file size suffixes (k, m, ...)
*
Add subsecond precision for OS's that support it.
*
Periodic operation - a poor man's logrotate(8)? :)
December 20, 2010 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.