Hi,
I am trying to write a script to Count Files in a directory located on a remote server and send an email Notification if it exceeds a limit. The code given below doesnot check the condition and sends the mail everytime irrespective of the condition. I have put this script in the cron. Can... (10 Replies)
I searched through the forum and couldn't quite find what I was looking for. I have a script that looks for a process "DW" to be running. If it is not it will email a notice to an account. I would like to add the functionality to have it also email a seperate notice if there is more that one of... (1 Reply)
shell script to send email with usage of space in the directory as description :
Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
I am very new to Linux and learning to script. This is for one of my servers at work that I have to keep track off as far as disk space and how it is used. I have tried to go line by line but little things keep chewing me up. I would appreciate any and all help or advice, and Mutt is installed on... (3 Replies)
Please help! I am really new to Linux, and my colleague who usually deals with these things isnt here to help me out.
We are running Scalix mail services on CentOS 6.0. Email users with IMAP folders are getting an error message stating the server cannot be reached, however POP3 mail users are... (13 Replies)
Hello Everyone,
I am new to this forum and also unix/linux. Our application today threw an alert whcih read as
"The users active count on host has crossed the threshold limit of 50
and is standing at 65."
This was although cleared when I restarted tomcat. But I am not sure why this count... (0 Replies)
autorep -m bogus
Machine Name Max Load Current Load Factor O/S Status
___________ ________ ___________ ______ ________ ______
bogus --- --- 1.00 Sys Agent Online
Status
______
Online
Offline
Missing
Unqualified
The "Status" always "Online". I like create a script execute run... (6 Replies)
Hi,
I am getting the error su: cannot set user id: Resource temporarily unavailable.
In limits.conf, it shows soft nproc 2047 for this user. ps H -u | wc -l shows 508 processes only.
Linux flavour is Red Hat Enterprise Linux Server release 5.10 (Tikanga)
Any advice will be much... (1 Reply)
Please help!!
This code works perfect but the only problem I am having is that is treats eg SQL Developer as separate cell/column which makes the formatting bad. I want to put SQL Developer in one cell. I attached a sample of how the output looks like.
report.txt
USERNAME OSUSER ... (5 Replies)
Discussion started by: lpoolfc
5 Replies
LEARN ABOUT ULTRIX
vlimit
vlimit(3) Library Functions Manual vlimit(3)Name
vlimit - control maximum system resource consumption
Syntax
#include <sys/vlimit.h>
vlimit(resource, value)
Description
This facility has been superseded by
Limits the consumption by the current process and each process it creates to not individually exceed value on the specified resource. If
value is specified as -1, then the current limit is returned and the limit is unchanged. The resources which are currently controllable
are:
LIM_NORAISE Pseudo-limit; if set nonzero then the limits may not be raised. Only the super-user may remove the noraise restriction.
LIM_CPU The maximum number of cpu-seconds to be used by each process.
LIM_FSIZE The largest single file which can be created.
LIM_DATA The maximum growth of the data+stack region via beyond the end of the program text.
LIM_STACK The maximum size of the automatically-extended stack region.
LIM_CORE the size of the largest core dump that will be created.
LIM_MAXRSS a soft limit for the amount of physical memory (in bytes) to be given to the program. If memory is tight, the system will
prefer to take memory from processes which are exceeding their declared LIM_MAXRSS.
Because this information is stored in the per-process information this system call must be executed directly by the shell if it is to
affect all future processes created by the shell; limit is thus a built-in command to
The system refuses to extend the data or stack space when the limits would be exceeded in the normal way. A break call fails if the data
space limit is reached, or the process is killed when the stack limit is reached. Since the stack cannot be extended, there is no way to
send a signal.
A file I/O operation which would create a file which is too large will cause a signal SIGXFSZ to be generated, this normally terminates the
process, but may be caught. When the cpu time limit is exceeded, a signal SIGXCPU is sent to the offending process; to allow it time to
process the signal it is given 5 seconds grace by raising the cpu time limit.
Restrictions
If LIM_NORAISE is set, then no grace should be given when the CPU time limit is exceeded.
See Alsocsh(1)vlimit(3)