Sponsored Content
Operating Systems Linux Limit size of log file from syslog Post 302145078 by idle on Monday 12th of November 2007 05:56:14 PM
Old 11-12-2007
no there's not. you need logrotate which is not a huge application (~40k). if you're so tight on space, you'll probably find that rewriting a bunch of commands in assembly language with only the functionality that you desire and linking to standard C calls will produce much much smaller binaries.

I've done this myself, and things like cat (which is about 10k) I rewrote in 42 bytes with basic error checking. rewrite a bunch of simple commands like that and you'll have room for logrotate (which you may not want to rewrite).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Limit size of the file

How do I limit size of a file to 1 MB or something like that under Linux? (4 Replies)
Discussion started by: _hp_
4 Replies

2. Solaris

File size limit

I want to have a permanent file created - and limit the size that this file can grow.. I want a circular file.. ie max size of file is 10 mb.. and if any new data written to file the oldest data removed.. How can I do this? I am on solaris 9 x86 (3 Replies)
Discussion started by: frustrated1
3 Replies

3. AIX

file size limit

Can anybody help me? How to increase file size limit in aix 5.2? I have already specified in /etc/security/limits file : default: fsize = -1 core = 2097151 cpu = -1 data = -1 rss = -1 stack = -1 nofiles = 2000 (2 Replies)
Discussion started by: vjm
2 Replies

4. UNIX for Advanced & Expert Users

File Size Limit

Hi, I have a problem writing or copying a file 2GB or larger to either the second or third disk on my C8000. I've searched this forum and found some good information on this but still nothing to solve the problem. I'm running hpux 11i, JFS3.3 and disk version 4 (from fstyp) on all 3 disks. ... (2 Replies)
Discussion started by: HaidoodFaulkauf
2 Replies

5. UNIX for Advanced & Expert Users

Syslog Truncation / Size Limit?

I searched and could not find an answer to this, and am having difficulty, so I would appreciate any assistance that can be offered. We're experiencing logs that are having all characters after the 850th one written being truncated. I am wondering if there is a default limit to the syslog... (1 Reply)
Discussion started by: Puck
1 Replies

6. UNIX for Dummies Questions & Answers

Log Size Exceeds Limit

Everytime I try to start Discreet Flame on my Octane2 machine it keeps giving me an error message "initial log size exceeds limit--aborting" Can anyone please help me how to fix this problem. Thanks. Octane2 IRIX64 Release 6.5 Flame 2007 (0 Replies)
Discussion started by: dewaraja
0 Replies

7. UNIX for Advanced & Expert Users

Log Size Exceeds Limit

Everytime I try to start Discreet Flame on my Octane2 machine it keeps giving me an error message "initial log size exceeds limit--aborting" Can anyone please help me how to fix this problem. Thanks. Octane2 IRIX64 Release 6.5 Flame 2007 (0 Replies)
Discussion started by: dewaraja
0 Replies

8. Shell Programming and Scripting

Log Size Exceeds Limit

Everytime I try to start Discreet Flame on my Octane2 machine it keeps giving me an error message "initial log size exceeds limit--aborting" Can anyone please help me how to fix this problem. Thanks. Octane2 IRIX64 Release 6.5 Flame 2007 (6 Replies)
Discussion started by: dewaraja
6 Replies

9. Shell Programming and Scripting

Limit on a File size.

Hi All, I want to store 32KB of file in Oracle DB into CLOB field. I am not able to insert more than 32KB of file into CLOB. So i want to put a limit on the file size. I am using k shell. My file size will dynamically increase its size, i want to check the file size if it is more than 32KB... (1 Reply)
Discussion started by: rajeshorpu
1 Replies

10. UNIX and Linux Applications

Autosys R11.3 : Error on log file size limit

Just had a migration from Autosys 4.5 to R11.3. After the migration to R11.3, Autosys jobs have been failing when the log file reaches a size of 800 MB. This did not happen before the migration, when Autosys 4.5 was used. Is there a way to configure the file size limit/cap in Autosys... (1 Reply)
Discussion started by: kimo222
1 Replies
BUILDSLAVE(1)							   User Commands						     BUILDSLAVE(1)

NAME
buildslave - a tool for managing buildbot slave instances SYNOPSIS
buildslave [ global options ] command [ command options ] buildslave create-slave [ -q|--quiet ] [ -f|--force ] [ -r|--relocatable ] [ -n|--no-logrotate ] [ -k|--keepalive TIME ] [ --usepty {0|1} ] [ --umask UMASK ] [ -s|--log-size SIZE ] [ -l|--log-count COUNT ] [ --verbose ] PATH MASTER USERNAME PASSWORD buildslave [ --verbose ] { start|stop|restart } [ PATH ] buildslave [ --verbose ] { --help|--version } buildslave command -h|--help DESCRIPTION
The `buildslave' command-line tool can be used to start or stop a buildslave or create a new buildslave instance. OPTIONS
Commands create-slave Create and populate a directory for a new buildslave start Start a buildslave stop Stop a buildslave restart Restart a buildslave Global options -h|--help Print the list of available commands and global options. All subsequent commands are ignored. --version Print twistd and buildslave version. All subsequent commands are ignored. --verbose Verbose output. create-slave command options -f|--force Re-use an existing directory. -h|--help Show help for current command and exit. All subsequent commands are ignored. -k|--keepalive Send keepalive requests to buildmaster every TIME seconds. Default value is 600 seconds. -l|--log-count Limit the number of kept old twisted log files to COUNT. All files are kept by default. -q|--quiet Do not emit the commands being run. -r|--relocatable Create a relocatable buildbot.tac. -n|--no-logrotate Do not permit buildslave rotate logs by itself. -s|--log-size Set size at which twisted lof file is rotated to SIZE bytes. Default value is 1000000 bytes. --umask Set umask for files created by buildslave. Default value is 077 which means only owner can access the files. See umask(2) for more details. --usepty Set wether child processes should be run in a pty (0 means do not run in a pty). Default value is 0. PATH Path to buildslave base directory. MASTER Set the host and port of buildbot master to attach to in form HOST:PORT. This should be provided by buildmaster administrator. USERNAME Buildslave name to connect with. This should be provided by buildmaster administrator. PASSWORD Buildslave password to connect with. This should be provided by buildmaster administrator. SEE ALSO
buildbot(1), umask(2), The complete documentation is available in texinfo format. To use it, run info buildbot. Buildbot August 2010 BUILDSLAVE(1)
All times are GMT -4. The time now is 08:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy