Assistance pls - pipe error: Too many open files in system
When I run a bash script in the customer system, it throws the warning and script exits
Exec '/root/sample.sh' @ hostname-- OK
(warn) /root/sample.sh: pipe error: Too many open files in system
/root/sample.sh: n + : syntax error: operand expected (error token is " ")
Exec '/root/sample.sh' @ hostname -- OK
(warn) /root/sample.sh: fork: Cannot allocate memory
/root/sample.sh: n + : syntax error: operand expected (error token is " ")
In the script - variable n is used in this below statement.Where as variable n is not initialised to zero.
whether the variables need to be explicity initialized to zero beforing using them.
does this cause below warnings Too many open files in system / cannot allocate memory
It isn't giving the error because of not initializing the variable.It is related to some pipe errors.You may open lot of files in your system.Check it out.In bash script,you can use the variables without initializing it.
script scans all the files in a specific directory and checks whether they are unzippable. all the monitoring information like how many files are scanned /corrupted are logged in a log file. I dint get any problem when I tested in my lab.
---------- Post updated at 02:59 PM ---------- Previous update was at 02:54 PM ----------
The maximum number of open files per userid has been exceeded. This is a kernel configuration parameter.
Check if the same login is used concurrently.
Check if files are not being closed when the process is finished with them
Re-link the kernel with a higher value.
ulimit refers to the maximum size of a single file.
Hello all,
I have searched high and low for a solution to this, many have come really close but not quite what I'm after.
I have 2 files. One contains GUID's, for example:
8121E002-96FE-4C9C-BC5A-6AFF20DACECD
84468F30-F3B7-418B-81F0-0908E80792BF
A second file, contains a path to the... (8 Replies)
Hello All,
Hope all are doing well.
We use scp (some times sftp and rsync also) for transferring big files (around 2GB each ) from 1 Network to another Network.
The Issues which we face :-
During transfer some times( Once in 1 week (or twice)) , the speed of transfer gets down to 30 kb/s,... (2 Replies)
Hi all, 1st post here. I'm on Solaris and currently, I get the following error if I try to use vim to edit anything:
Error detected while processing function <SNR>6_initialize:
line 2:
E697: Missing end of List ']':
E116: Invalid arguments for function <SNR>6_defineOption
line 3:
E10:... (6 Replies)
Hi,
I am trying to capture the output of the an open pipe in perl. but I am not sure how to do this. can some one please help me do that?
Below is the script I am using (2 Replies)
Hi,
I've came across an issue with a script I've been writing to check DHCP addresses on an Solaris system, the script has been running reasonably well, until it hit the following problem:
./sub_mon_v2: redirection error: cannot duplicate fd: Too many open files
./sub_mon_v2: cannot make... (3 Replies)
Hi there,
I have tried using the "find" command to do this but to no avail as the "find -mtime" command I used descend to the directories from my current working directory.
Say in "directoryA" has multiple files and those files are created on a daily basis.
Under "directoryB", there are... (4 Replies)
Hello,
I have an issue on a webserver where I have a perl script rotating and moving the logs to an archive directory where they are gzipped. This is working fine. The problem is when there is tracing enabled on my webserver where the tracelogs are rotated whenenver they reach 100Meg and they... (2 Replies)
I am using a perl-script from C-code, executing it by the 'system(..)' comand.
The problem is to return the perl-return code to the C correctly.
Default the 'system()' shell is Bourne: sh
My try: (perl_src.c_pl - the perl script; t_sys - C-program with system() call (I will show it... (7 Replies)
Dear all,
Inside a C program, I want to open a very big file (about 12 GB) in order to read its
content. Here is the code:
/*
argv contains the path to the file.
*/
inputFileDescriptor = open(argv, O_RDONLY);
if (inputFileDescriptor < 0)
{
... (6 Replies)
I am trying to write a shell script that will such in data from a config file. The script should mount device nodes that are contained in a config file in the following format:
# filesystem type # read/write #device # Mount Point
xfs w ... (1 Reply)