07-16-2010
Now its storing all the lines in the output,
I tried to redirect the output using command ./sim-outorder >gcc.out
that doesn't store all the lines
Now this code 2>&1 | tee gcc.out is working
thanks to all
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
%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)
Discussion started by: deaniyoer
5 Replies
2. UNIX for Dummies Questions & Answers
What is the kernel parameter ( or other) that sets the maximum number of open files by the o/s (3 Replies)
Discussion started by: blp001
3 Replies
3. UNIX for Advanced & Expert Users
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)
Discussion started by: sharif
1 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: quintet
6 Replies
5. Shell Programming and Scripting
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)
Discussion started by: rohiiit.sharma
2 Replies
6. HP-UX
Hi, I'm running HP-UX 10.20. Is there a 2GB file size limit? if so, can i change it? (3 Replies)
Discussion started by: gabriel.560
3 Replies
7. Shell Programming and Scripting
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)
Discussion started by: shaal89
0 Replies
8. Linux
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)
Discussion started by: matthewfs
13 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: kraljic
3 Replies
10. Red Hat
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 DEBIAN
plimit
plimit(1) User Commands plimit(1)
NAME
plimit - get or set the resource limits of running processes
SYNOPSIS
plimit [-km] pid...
plimit {-cdfnstv} soft,hard... pid...
DESCRIPTION
If one or more of the cdfnstv options is specified, plimit sets the soft (current) limit and/or the hard (maximum) limit of the indicated
resource(s) in the processes identified by the process-ID list, pid. Otherwise plimit reports the resource limits of the processes identi-
fied by the process-ID list, pid.
Only the owner of a process or the super-user is permitted either to get or to set the resource limits of a process. Only the super-user
can increase the hard limit.
OPTIONS
The following options are supported:
-k On output, show file sizes in kilobytes (1024 bytes) rather than in 512-byte blocks.
-m On output, show file and memory sizes in megabytes (1024*1024 bytes).
The remainder of the options are used to change specified resource limits. They each accept an argument of the form:
soft,hard
where soft specifies the soft (current) limit and hard specifies the hard (maximum) limit. If the hard limit is not specified, the comma
may be omitted. If the soft limit is an empty string, only the hard limit is set. Each limit is either the literal string unlimited, or a
number, with an optional scaling factor, as follows:
nk n kilobytes
nm n megabytes (minutes for CPU time)
nh n hours (for CPU time only)
mm:ss minutes and seconds (for CPU time only)
The soft limit cannot exceed the hard limit.
-c soft,hard Set core file size limits (default unit is 512-byte blocks).
-d soft,hard Set data segment (heap) size limits (default unit is kilobytes).
-f soft,hard Set file size limits (default unit is 512-byte blocks).
-n soft,hard Set file descriptor limits (no default unit).
-s soft,hard Set stack segment size limits (default unit is kilobytes).
-t soft,hard Set CPU time limits (default unit is seconds).
-v soft,hard Set virtual memory size limits (default unit is kilobytes).
OPERANDS
The following operands are supported.
pid Process ID list.
EXIT STATUS
plimit returns the exit value zero on success, non-zero on failure (such as no such process, permission denied, or invalid option).
FILES
/proc/pid/* process information and control files
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO
ulimit(1), proc(1), getrlimit(2), setrlimit(2), proc(4), attributes(5),
SunOS 5.10 8 Jun 1998 plimit(1)