07-17-2005
hmmmn - I think I have my answer..
I set this in my .cshrc file
limit filesize 4m ## filesize limit to 4 megabytes
I guess this will limit any file I create as this user to 4m maximum..
Any way to just apply this limit to one file?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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. AIX
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
3. Programming
When i run my C program which dynamically creates the output file, the program stops after sometime and gives the error "File size limit exceeded" even though my working directory has space.Can anyone plz help me out. (13 Replies)
Discussion started by: drshah
13 Replies
4. UNIX for Advanced & Expert Users
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 Dummies Questions & Answers
Is there any size limit for FTPing file from one unix system to another? (6 Replies)
Discussion started by: swarup2008
6 Replies
6. Shell Programming and Scripting
My code is
awk '{
out=split(FILENAME,a,"/")
sub(/\./,"_",a)
sub(/\-/,"_",a)
NEWSTRING="main_"a"_"a"(" # The word we want to insert
gsub(/main\(/,NEWSTRING); # the word to be replaced
print "Main becomes ",NEWSTRING")","in file ",FILENAME >> "/home/ds2/test/NEW2.txt" ... (4 Replies)
Discussion started by: senior_ahmed
4 Replies
7. UNIX for Advanced & Expert Users
hi,
how can I find out what the limit of a file size is on unix?
thanks (6 Replies)
Discussion started by: JamesByars
6 Replies
8. Shell Programming and Scripting
Hi,
Can some one please tell me the file size limit (if any) while using sftp
I am trying to transfer a file ( size is almost 350 MB ) but it fails as shown below.
sftp> put file1 ./file1
Uploading file1 to /dir1/./file1
file1 25% 100MB 10.2MB/s 00:28 ETA
Couldn't write to remote... (6 Replies)
Discussion started by: vikash_k
6 Replies
9. Shell Programming and Scripting
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. HP-UX
Greetings,
I'm attempting to dump a filesystem from a RHEL5 Linux server to a VXFS filesystem on an HP-UX server. The VXFS filesystem is large file enabled and I've confirmed that I can copy/scp a file >2GB to the filesystem.
# fsadm -F vxfs /os_dumps
largefiles
# mkfs -F vxfs -m... (12 Replies)
Discussion started by: bkimura
12 Replies
LEARN ABOUT DEBIAN
log4c_sizewin_make_udata
rollingpolicy_type_sizewin.h(3) log4c rollingpolicy_type_sizewin.h(3)
NAME
rollingpolicy_type_sizewin.h -
Log4c rolling file size-win interface. Log4c ships with (and defaults to) the classic size-window rollover policy: this triggers rollover
when files reach a maximum size. The first file in the list is always the current file; when a rollover event occurs files are shifted up
by one position in the list--if the number of files in the list has already reached the max then the oldest file is rotated out of the
window.
SYNOPSIS
#include <log4c/defs.h>
#include <log4c/rollingpolicy.h>
Typedefs
typedef struct __sizewin_udata rollingpolicy_sizewin_udata_t
Functions
LOG4C_API rollingpolicy_sizewin_udata_t * sizewin_make_udata (void)
LOG4C_API int sizewin_udata_set_file_maxsize (rollingpolicy_sizewin_udata_t *swup, long max_size)
LOG4C_API int sizewin_udata_set_max_num_files (rollingpolicy_sizewin_udata_t *swup, long max_num)
LOG4C_API int sizewin_udata_set_appender (rollingpolicy_sizewin_udata_t *swup, log4c_appender_t *app)
Detailed Description
Log4c rolling file size-win interface. Log4c ships with (and defaults to) the classic size-window rollover policy: this triggers rollover
when files reach a maximum size. The first file in the list is always the current file; when a rollover event occurs files are shifted up
by one position in the list--if the number of files in the list has already reached the max then the oldest file is rotated out of the
window.
If the max file size is set to zero, this means 'no-limit'.
The default parameters for the size-win policy are 5 files of maximum size of 20kilobytes each. These parameters may be changed using the
appropriate setter functions.
Typedef Documentation
typedef struct __sizewin_udata rollingpolicy_sizewin_udata_t log4c size-win rolling policy type
Function Documentation
LOG4C_API rollingpolicy_sizewin_udata_t* sizewin_make_udata (void) Get a new size-win rolling policy
Returns:
a new size-win rolling policy, otherwise NULL.
LOG4C_API int sizewin_udata_set_appender (rollingpolicy_sizewin_udata_t *swup, log4c_appender_t *app) Set the rolling file appender in this
rolling policy configuration.
Parameters:
swup the size-win configuration object.
app the rolling file appender to set.
Returns:
zero if successful, non-zero otherwise.
LOG4C_API int sizewin_udata_set_file_maxsize (rollingpolicy_sizewin_udata_t *swup, longmax_size) Set the maximum file size in this rolling
policy configuration.
Parameters:
swup the size-win configuration object.
max_size the approximate maximum size any logging file will attain. If you set zero then it means 'no-limit' and so only one file of
unlimited size will be used for logging.
Returns:
zero if successful, non-zero otherwise.
LOG4C_API int sizewin_udata_set_max_num_files (rollingpolicy_sizewin_udata_t *swup, longmax_num) Set the maximum number of filesin this rolling
policy configuration.
Parameters:
swup the size-win configuration object.
max_num the maximum number of files in the list.
Returns:
zero if successful, non-zero otherwise.
Author
Generated automatically by Doxygen for log4c from the source code.
Version 1.2.1 Mon May 2 2011 rollingpolicy_type_sizewin.h(3)