pause(3) Library Functions Manual pause(3)NAME
pause - Suspends a process until it receives a signal
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <unistd.h>
int pause( void );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
pause(): POSIX.1, XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The pause() function suspends the calling process until it receives a signal whose action is either to execute a signal-catching function
or terminate the process. The signal must be one that is acknowledged by the calling process. The pause() function does not affect the
action taken when a signal is received.
The pause() function suspends the calling process by suspending the calling thread. Other threads in the process, if any, are not sus-
pended.
RETURN VALUES
When the received signal causes the calling process to terminate, the pause() function does not return.
When the signal is caught by the calling process and control is returned from the signal-catching function, the calling thread resumes exe-
cution from the point of suspension. At that point, the pause() function returns a value of -1 and sets errno to indicate the error.
ERRORS
The pause() function sets errno to the specified values for the following conditions: The signal has been caught by the calling process and
control has been returned from the signal-catching function.
RELATED INFORMATION
Functions: kill(2), sigaction(2), sigvec(2), wait(2)
Routines: alarm(3)
Standards: standards(5) delim off
pause(3)
Ahhh!! I am not very bright and I ask too many questions. I was trying to install the Enlightenment windows manager from a RPM to my RedHat 7.1 system which currently uses the GNOME GUI. When I clicked on "install" in my file manager, I get a short pause (my systems is a P120 w/ 24 Mb RAM!! I do... (3 Replies)
ok, im somewhat of an advanced programmer for the windows-side of C/C++, and the system command to pause the console is 'system("pause");'.... i just recently transfered over to Slackware 3.3 (yes, its old, but i <3 text), and pause is not the command for pausing the command line. is there any... (3 Replies)
Hi, i facing a problem when run the script below..
while
do
if
then
printf "Please enter a name : "
read response # the problem occur here
if
then
ea_ident=${omc_ident}
else
#
# Check that name does not contain invalid... (14 Replies)
Hello,
I am writing a shell script to search an active log file. If an "error" or "aborted" found, echo an acknowledgment message and wait until the user presses ENTER key.
tail -f log.file |nawk '
{print $0}
$0 ~ /error/ {
print "Error found. Press ENTER to acknowledge."
getline i < "-"... (3 Replies)
This may seem like an odd question, but I've heard that on old Alpha servers running OpenVMS, you could pause the system so that the OS is essentially suspended for a small period of time, then unpause it and it would pick up where it left off. During the pause, all CPU cycles would be halted, all... (3 Replies)
Alright, I have this script that pulls files from a few locations, process those files, creates a zip file, rsync's it and then removes everything.
The problem that I'm having is that I do not know how large the rsync'ed zip file is going to be. Right now I'm using a sleep command before I... (4 Replies)
Hi,
I've written a shell script to take photos with my camera.
After every picture taken, the picture is transmitted to the computer via usb and then deleted on the camera.
But sometimes there's an error and the picture is not deleted and so, after a certain time, the camera chip will be... (4 Replies)
Hi,
I recently would like to write a shell script that
1. Runs in the background (can be done with "&", but i'd be happy for other solutions to keep programs running)
2. Does its stuff
3 THEN checks a specified folder for a size change over time (say, each 5 seconds. AND ONLY continues with... (9 Replies)
I am writing a ksh script in cygwin though it could just as easily be bash and am trying to make an alert for myself where the bell rings many times like
print '\a'or
echo '^G'except I want it to ping me many times not just once. For some reason doing
print '\a\a\a\a\a\a\a\a\a\a'or similar... (7 Replies)
All,
Is there some way to have my KSH script pause, until the word "DONE!" appears in the logfile /logs/log.txt?
Difficulty: The word "DONE!" may already be present in logs from the past. So I anticipate tail -0f may (somehow?) need to be done in the background, instead of grepping in a... (16 Replies)
Hi I'm trying to create a basic script that pauses for user input to verify a file name before generating the output.
I have numerous SSL certificate files which I am trying to determine the expiry date so what I'm trying to do is write a script so that is pauses to request the name of the .pem... (9 Replies)
6) printf "\n GoodBye! \n\n"; exit ;;
I am trying modify the above command to pause a couple of seconds before exiting, so a message can be displayed. Thank you :). (8 Replies)
I am a linux user (PcLinuxOs desktop 64bit kde5). I am looking for a script (bash or python) to autopause clementine (a music player) on skype call. VLC works: autopause on skype call and at the end resume). Clementine automute, but not autopause, on skype call.
I am absolute beginner with the... (17 Replies)