%ulimit -a
nofiles(descriptors) 1024
This means that I can open up to 1024 file per process? But wonder if there is any hardlimit imposed by Solaris 2.6 (eg 255) ?
By the way, is there any tool that can trace which files (or sockets) are opened by a process?
Thanks
DY (5 Replies)
Hi,
I want to search particular pattern and splitting the file in to multiple files. (Splitted files may be more than 150). It got splitted upto 20 files after that, I got some error.
nawk: filename.21 makes too many open files.
input record number 654, file xxxxxxx
Can u guide me to... (1 Reply)
Hi there,
I am working on AIX and i dont have permission for /etc/security/limits file.
In the man page of ulimit it is mentioned that it will get the limitations for me from /etc/security/limits file.
the file permission for ulimit command is
-r-xr-xr-x 15 bin bin ... (6 Replies)
Hi ALL:),
I have a file for e.g.
ajdflkj|dkj|djfj|go|123|4||||||||||||||89|101|||||||||||||||
The length of file is not fixed. So wat the limits should be given in for loop to access till end of file????
Thanks in advance..... (2 Replies)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
I've been looking online trying to find the correct value nice and priority can take in the limits.conf file. ON the man page it says;
Does this mean priority can be any negative number and any positive?
Then
Does this mean any number between -20 and 19 also what does the definition of nice... (13 Replies)
OS version : RHEL 6.5
Below is an excerpt from /etc/security/limits.conf file for OS User named appusr in our server
appusr soft nproc 2047
appusr hard nproc 16384
What will happen if appusr has already spawned 2047 processes and wants to spawn 2048th process ?
I just want to know... (3 Replies)
Hi Guys,
I'm trying to install Oracle Database on to Oracle Linux 7.6 but when
the database install package checks the OS set-up, it keeps on failing
on the soft limits for the stack. It's default value is 8192 but I'm trying
to set it to 10240.
This is what I added to... (2 Replies)
Discussion started by: ASGR
2 Replies
LEARN ABOUT SUNOS
strcadd
strccpy(3GEN) String Pattern-Matching Library Functions strccpy(3GEN)NAME
strccpy, streadd, strcadd, strecpy - copy strings, compressing or expanding escape codes
SYNOPSIS
cc [ flag ... ] file ... -lgen [ library ... ]
#include <libgen.h>
char *strccpy(char *output, const char *input);
char *strcadd(char *output, const char *input);
char *strecpy(char *output, const char *input, const char *exceptions);
char *streadd(char *output, const char *input, const char *exceptions);
DESCRIPTION
strccpy() copies the input string, up to a null byte, to the output string, compressing the C-language escape sequences (for example,
,
01) to the equivalent character. A null byte is appended to the output. The output argument must point to a space big enough to accommo-
date the result. If it is as big as the space pointed to by input it is guaranteed to be big enough. strccpy() returns the output argument.
strcadd() is identical to strccpy(), except that it returns the pointer to the null byte that terminates the output.
strecpy() copies the input string, up to a null byte, to the output string, expanding non-graphic characters to their equivalent C-language
escape sequences (for example,
, 01). The output argument must point to a space big enough to accommodate the result; four times the
space pointed to by input is guaranteed to be big enough (each character could become and 3 digits). Characters in the exceptions string
are not expanded. The exceptions argument may be zero, meaning all non-graphic characters are expanded. strecpy() returns the
output argument.
streadd() is identical to strecpy(), except that it returns the pointer to the null byte that terminates the output.
EXAMPLES
Example 1: Example of expanding and compressing escape codes.
/* expand all but newline and tab */
strecpy( output, input, "
" );
/* concatenate and compress several strings */
cp = strcadd( output, input1 );
cp = strcadd( cp, input2 );
cp = strcadd( cp, input3 );
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO string(3C), strfind(3GEN), attributes(5)NOTES
When compiling multi-thread applications, the _REENTRANT flag must be defined on the compile line. This flag should only be used in multi-
thread applications.
SunOS 5.10 29 Dec 1996 strccpy(3GEN)