Hi,
when I execute a script on unix AIX, I've got an error message:
"Execution: 85328 Signal d'alarme".
If I edit this file with "vi", I ve got the same error after a while (about 1 minute).
If I try with another user I still have the problem.
But if I rename this file, no problem.
My... (5 Replies)
I am trying to write a signal to exit when a process times out. What I have come up with from poking around the web is this.
#!/usr/bin/perl
eval {
local $SIG{ALRM} = sub { die "alarm clock restart" };
alarm 10;
open(DSMADMC, "dsmadmc -se=tsmpc1 -id=XXXXX... (2 Replies)
how to i find out the disk usage on a server.
say in windows examples its like C:/ D:/ and checking out the disk space.
how can i find in Unix.
can i just use df -k (3 Replies)
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Is it ok to use exit() inside a signal handler?
I catch SIGUSR1 in a signal handler and I try to close a file and then exit. The result is inconsistent. Sometimes the process exit and sometimes it returns to the original state before the signal handler was invoked.
Perhaps exit is not legal in... (8 Replies)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Hi Experts,
I am using Solaris-10, Sun-Fire-V445.
i got often the below message-
"Memory Usage – Critical, Memory usage (RAM) exceeding 90%
The memory utilization is exceeding 90%" in a application running on solaris.
I checked with Vmstat. Everything seems to be fine. Where i should... (5 Replies)
I'm writing a function right now, and I want to set an alarm to avoid a timeout, here's the general idea of my code:
int amt = -2;
alarm(10);
amt = read(fd, &t->buf, TASKBUFSIZ - tailpos); //do a read
when the alarm goes off, i want to check the value of "amt"
... (1 Reply)
Our small company, about 5 users, need a basic script that scans mapped network drives (example: drive b,c,d, e, and f) for hard drive usage. This needs to send a report to myself in any type of basic notepad format (easy to read and decipher) for drives that have reached 80% usage... any ideas? ... (1 Reply)
Hi,
A basic sed question.
I have a set of files. In each file there is a number that I want replaced. For example, if I run sed I should get the following:
% cat test2.txt
#goofy//171.00
goofy 171.00
% sed -i 's/171/xxx/g' test2.txt
% cat test2.txt
#goofy//xxx.00
goofy xxx.00
... (2 Replies)
Discussion started by: pc2001
2 Replies
LEARN ABOUT HPUX
alarm
alarm(2) System Calls Manual alarm(2)NAME
alarm - set a process's alarm clock
SYNOPSIS DESCRIPTION
instructs the alarm clock of the calling process to send the signal to the calling process after the number of real-time seconds specified
by sec have elapsed; see signal(5). Specific implementations might place limitations on the maximum supported alarm time. The constant
defined in specifies the implementation-specific maximum. Whenever sec is greater that this maximum, it is silently rounded down to it.
On all implementations, is guaranteed to be at least 31 days (in seconds).
Alarm requests are not stacked; successive calls reset the alarm clock of the calling process.
If sec is 0, any previously made alarm request is canceled.
Alarms are not inherited by a child process across a but are inherited across an
On systems that support the and system calls, the timer mechanism used by is the same as that used by Thus successive calls to and set and
return the state of a single timer. In addition, sets the timer interval to zero.
RETURN VALUE
returns the amount of time previously remaining in the alarm clock of the calling process.
WARNINGS
In some implementations, error bounds for alarm are -1, +0 seconds (for the posting of the alarm, not the restart of the process). Thus a
delay of 1 second can return immediately. The routine can be used to create a more precise delay.
SEE ALSO sleep(1), exec(2), getitimer(2), pause(2), signal(5), sleep(3C).
STANDARDS CONFORMANCE alarm(2)