Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'd like to know if, changing the ulimit would have an effect in the operations that are carried-out using 'screen'.
I'm using 'screen' to carry-on some operations using multiple processes, for this I need to change the number of files that can be used simoultaneously. I used first 'ulimit -n 9999' in the command line, no problem, but then I tried to do it in the 'screen' as I need to shut-off the pc during non-office times.
I haven't been able to do so, it always retrieve 4096. I even edited the /etc/security/limits.conf file by adding my username and "hard/soft nofile 9999" at the end of it. Nothing changed. I'm suspecting that this has no effect when I use the screens, my process is 'killed' after less than 1000 operations.
Yes a bit more information may be helpful. Besides the distribution which you're running, also informing a bit more about what you mean by screens. My assumption is that you mean the desktop, but please clarify.
Since you cite the number of files, and that the default is 4096, it then seems unusual that your process is being killed at less than 1000 operations, which once again I'm assuming this means "open files"?
Can you explain more what these processes are? Have you written a script or program to open files? Given that this fails below the system default limits, I wonder if there may be some other problem here.
Yes a bit more information may be helpful. Besides the distribution which you're running, also informing a bit more about what you mean by screens. My assumption is that you mean the desktop, but please clarify.
Since you cite the number of files, and that the default is 4096, it then seems unusual that your process is being killed at less than 1000 operations, which once again I'm assuming this means "open files"?
Can you explain more what these processes are? Have you written a script or program to open files? Given that this fails below the system default limits, I wonder if there may be some other problem here.
The process was killed only inside the screen, I didn't know how to increase the number of open files (yes you are right) in the way that it had an effect also in the 'screen'. However, I found out that by killing the screen (with exit) and starting over a new screen, I already get the number of open files that I need and set previously (9999), so it seems that it was a matter of re-starting the sessions. [problem solved]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.