Sponsored Content
Full Discussion: Limit size of the file
Top Forums UNIX for Dummies Questions & Answers Limit size of the file Post 24285 by _hp_ on Tuesday 9th of July 2002 01:46:48 PM
Old 07-09-2002
The file is on my webserver and users can add stuff into it, and I need to limit the size. I don't have that much access to system.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. Programming

File size limit exceeded

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

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 Dummies Questions & Answers

Size limit for FTPing file

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

awk file size limit

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

file size limit?

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

sftp file size limit

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

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. HP-UX

2GB file size limit

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
<sys/resource.h>(P)					     POSIX Programmer's Manual					       <sys/resource.h>(P)

NAME
sys/resource.h - definitions for XSI resource operations SYNOPSIS
#include <sys/resource.h> DESCRIPTION
The <sys/resource.h> header shall define the following symbolic constants as possible values of the which argument of getpriority() and setpriority(): PRIO_PROCESS Identifies the who argument as a process ID. PRIO_PGRP Identifies the who argument as a process group ID. PRIO_USER Identifies the who argument as a user ID. The following type shall be defined through typedef: rlim_t Unsigned integer type used for limit values. The following symbolic constants shall be defined: RLIM_INFINITY A value of rlim_t indicating no limit. RLIM_SAVED_MAX A value of type rlim_t indicating an unrepresentable saved hard limit. RLIM_SAVED_CUR A value of type rlim_t indicating an unrepresentable saved soft limit. On implementations where all resource limits are representable in an object of type rlim_t, RLIM_SAVED_MAX and RLIM_SAVED_CUR need not be distinct from RLIM_INFINITY. The following symbolic constants shall be defined as possible values of the who parameter of getrusage(): RUSAGE_SELF Returns information about the current process. RUSAGE_CHILDREN Returns information about children of the current process. The <sys/resource.h> header shall define the rlimit structure that includes at least the following members: rlim_t rlim_cur The current (soft) limit. rlim_t rlim_max The hard limit. The <sys/resource.h> header shall define the rusage structure that includes at least the following members: struct timeval ru_utime User time used. struct timeval ru_stime System time used. The timeval structure shall be defined as described in <sys/time.h> . The following symbolic constants shall be defined as possible values for the resource argument of getrlimit() and setrlimit(): RLIMIT_CORE Limit on size of core file. RLIMIT_CPU Limit on CPU time per process. RLIMIT_DATA Limit on data segment size. RLIMIT_FSIZE Limit on file size. RLIMIT_NOFILE Limit on number of open files. RLIMIT_STACK Limit on stack size. RLIMIT_AS Limit on address space size. The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided. int getpriority(int, id_t); int getrlimit(int, struct rlimit *); int getrusage(int, struct rusage *); int setpriority(int, id_t, int); int setrlimit(int, const struct rlimit *); The id_t type shall be defined through typedef as described in <sys/types.h> . Inclusion of the <sys/resource.h> header may also make visible all symbols from <sys/time.h>. The following sections are informative. APPLICATION USAGE
None. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
<sys/time.h> , <sys/types.h> , the System Interfaces volume of IEEE Std 1003.1-2001, getpriority(), getrusage(), getrlimit() COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 <sys/resource.h>(P)
All times are GMT -4. The time now is 10:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy