I need to code a script, which will run via cron, every 30 minutes.
The script will read a file containing a date&time and number (which represents disk space). The file gets appended to every 30 minutes. Here's a sample of the file:
CPU 1:04/25/02 1:00 am:1972554
CPU 1:04/25/02 1:30... (1 Reply)
Hello,
I want a script that will scan the file /etc/httpd/conf/httpd.conf and the folder /etc/httpd/libexec/
-bash-2.05b# grep mod_r /etc/httpd/conf/httpd.conf
LoadModule rewrite_module libexec/mod_rewrite.so
AddModule mod_rewrite.c
-bash-2.05b#
-bash-2.05b# find... (4 Replies)
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Hi There
I have to wrote a script where I am able to echo a result of an SQL script, however I want to be able to send an email to myself when it is more than 0 (so whenever a value is returned) is this possible?
I tried one way from looking on the web but this didn't work, I have added my... (8 Replies)
Discussion started by: simpsa27
8 Replies
LEARN ABOUT HPUX
atexit
atexit(3) Library Functions Manual atexit(3)NAME
atexit - register a function to be called at program termination
SYNOPSIS DESCRIPTION
registers the function func to be called, without arguments, at normal program termination. Functions registered by are called in reverse
order of registration.
An call during exit processing is always unsuccessful.
The number of registered functions should not exceed as specified in
When necessary, or (see crt0(3) and dld.sl(5) for PA-RISC systems or dld.so(5) for Itanium-based systems) registers one or more functions
with to allow some processing at normal program termination. This registration occurs before any other.
RETURN VALUE
returns zero if the registration is successful; non-zero if unsuccessful.
SEE ALSO exit(2), crt0(3), dld.sl(5) for PA-RISC systems.
dld.so(5) for Itanium-based systems.
STANDARDS CONFORMANCE atexit(3)