Sponsored Content
The Lounge What is on Your Mind? Do You Sleep With Battery Powered Devices? Post 302322844 by Corona688 on Thursday 4th of June 2009 04:59:35 PM
Old 06-04-2009
Not a thing. Even my alarm clock (which isn't a poll entry, but I think should be :P) is well across the room, to force me to get out of bed in the morning.
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

passthrough devices vs. named devices

I am having trouble understanding the difference between a passthrough device and a named device and when you would use one or the other to access equipment. As an example, we have a tape library and giving the command "camcontrol devlist" gives the following output: akx# camcontrol... (1 Reply)
Discussion started by: thumper
1 Replies

2. SCO

COuld not telnet but server powered

Hi We are running SCO unixware 7.1.1. I am new to unix so hope someone can help. This morning no one could log into the unix server by ssh. Server could not be pinged but the server was powered. We could not also view the screen. We have to manually power it down and it came back up. I... (0 Replies)
Discussion started by: tjsingh
0 Replies

3. Programming

SQL Powered Awk (SPAWK)

If anyone is interesting in using awk with MySQL databases, then I have some good news: I've developed a (shared) library, namely libspawk.so, using MySQL C API and GNU awk's extension feature. If you are using MySQL and you like awk, then you'll find very useful to use SPAWK module. Please... (0 Replies)
Discussion started by: Panos1962
0 Replies

4. Shell Programming and Scripting

Wrapping 'sleep' with my 'resleep' function (Resettable sleep)

This is a very crude attempt in Bash at something that I needed but didn't seem to find in the 'sleep' command. However, I would like to be able to do it without the need for the temp file. Please go easy on me if this is already possible in some other way: How many times have you used the... (5 Replies)
Discussion started by: deckard
5 Replies
alarm(2)							   System Calls 							  alarm(2)

NAME
alarm - schedule an alarm signal SYNOPSIS
#include <unistd.h> unsigned int alarm(unsigned int seconds); DESCRIPTION
The alarm() function causes the system to generate a SIGALRM signal for the process after the number of real-time seconds specified by sec- onds have elapsed (see signal.h(3HEAD)). Processor scheduling delays may prevent the process from handling the signal as soon as it is generated. If seconds is 0, a pending alarm request, if any, is cancelled. If seconds is greater than LONG_MAX/hz, seconds is rounded down to LONG_MAX/hz. The value of hz is normally 100. Alarm requests are not stacked; only one SIGALRM generation can be scheduled in this manner; if the SIGALRM signal has not yet been gen- erated, the call will result in rescheduling the time at which the SIGALRM signal will be generated. The fork(2) function clears pending alarms in the child process. A new process image created by one of the exec(2) functions inherits the time left to an alarm signal in the old process's image. RETURN VALUES
If there is a previous alarm request with time remaining, alarm() returns a non-zero value that is the number of seconds until the previous request would have generated a SIGALRM signal. Otherwise, alarm() returns 0. ERRORS
The alarm() function is always successful; no return value is reserved to indicate an error. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Async-Signal-Safe | +-----------------------------+-----------------------------+ SEE ALSO
exec(2), fork(2), signal.h(3HEAD), attributes(5), standards(5) SunOS 5.11 6 Jun 2007 alarm(2)
All times are GMT -4. The time now is 01:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy