Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pause(2) [v7 man page]

PAUSE(2)							System Calls Manual							  PAUSE(2)

NAME
pause - stop until signal SYNOPSIS
pause( ) DESCRIPTION
Pause never returns normally. It is used to give up control while waiting for a signal from kill(2) or alarm(2). SEE ALSO
kill(1), kill(2), alarm(2), signal(2), setjmp(3) ASSEMBLER
(pause = 29.) sys pause PAUSE(2)

Check Out this Related Man Page

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sleep

what is the purpose of the sleep command? (5 Replies)
Discussion started by: Anna
5 Replies

2. UNIX for Dummies Questions & Answers

In need of help!!

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)
Discussion started by: pantera
3 Replies

3. Programming

pause? where art thou?

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)
Discussion started by: 01000101
3 Replies

4. UNIX for Dummies Questions & Answers

pause needed for corn shell

I need a user pause for a script file, like the pause command in dos. please help I thought it was the corn shell it is csh. (7 Replies)
Discussion started by: dennysavard
7 Replies

5. Shell Programming and Scripting

the shell not pause when execute read command

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)
Discussion started by: neruppu
14 Replies

6. Shell Programming and Scripting

Pause for response from the log file

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)
Discussion started by: gxdanh
3 Replies

7. HP-UX

Any Way to pause/unpause system execution in HP-UX 11.11 and 11.23?

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)
Discussion started by: deckard
3 Replies

8. Shell Programming and Scripting

Script Pause Until Rsync Is Done Transferring

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)
Discussion started by: droppedonjapan
4 Replies

9. Shell Programming and Scripting

How to pause a shell script

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)
Discussion started by: McLennon
4 Replies

10. Shell Programming and Scripting

Pause shell script till folder doesn't change size anymore

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)
Discussion started by: pasc
9 Replies

11. Shell Programming and Scripting

How to ring the system bell many times without pause?

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)
Discussion started by: benalt
7 Replies

12. Shell Programming and Scripting

How to have my ksh script pause, until something appears in the logs.?

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)
Discussion started by: chatguy
16 Replies

13. Shell Programming and Scripting

Creating a script requiring a pause for user input

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)
Discussion started by: Buddyluv
9 Replies

14. Shell Programming and Scripting

Pause before exit

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)
Discussion started by: cmccabe
8 Replies

15. Shell Programming and Scripting

Need a script to autopause clementine on skype call

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)
Discussion started by: duns
17 Replies