Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-17-2007, 02:43 PM
|
#1
|
LQ Newbie
Registered: Jun 2006
Posts: 3
Rep:
|
Linux pause command not on wiki.linuxquestions.org/wiki/P_commands
I have discovered the 'pause' command does not exist on my system.
It is also not listed under the wiki.linuxquestions.org/wiki/P_commands. My operating system is essentially that listed in LFS 6.2 and BLFS 6.2. the kernel is 2.6.16.27. What package normally would provide the utility?
Thanks
Jim McConville
|
|
|
12-17-2007, 03:12 PM
|
#2
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
I have never heard about it. If a pause command is meant to sleep a certain amount of time before executing the next statement in a script, this is the command
if it is meant to pause the execution of a script waiting for user input, this is a work for
Code:
read -p "Press enter to continue... "
Pause in a *nix system is a C function declared in the unistd.h header. Bye.
|
|
|
12-17-2007, 04:37 PM
|
#3
|
LQ Newbie
Registered: Jun 2006
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
I have never heard about it. If a pause command is meant to sleep a certain amount of time before executing the next statement in a script, this is the command
if it is meant to pause the execution of a script waiting for user input, this is a work for
Code:
read -p "Press enter to continue... "
Pause in a *nix system is a C function declared in the unistd.h header. Bye.
|
'read' is also not a command on my system. It is also declared in the unistd.h header. This header is is provided in the Linux-Libc-Headers package but apparently the declarations within unistd.h are not compiled as commands.
|
|
|
12-17-2007, 05:31 PM
|
#4
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by JHMC
'read' is also not a command on my system. It is also declared in the unistd.h header. This header is is provided in the Linux-Libc-Headers package but apparently the declarations within unistd.h are not compiled as commands.
|
read is a builtin command in sh, bash, ksh. In C-like shells a method to read a line of input is
On my system the header unistd.h is mainly provided from the glibc package, that are the standard C libraries. What you're referring to are the kernel headers which basically provide definitions of the system calls. Anyway, returning to your original question, I don't think you will ever find a package providing a "pause" command, but maybe "sleep" is what you're looking for. Or, if you're experienced in C programming, you may build your customized "pause" command!
|
|
|
12-18-2007, 11:56 AM
|
#5
|
LQ Newbie
Registered: Jun 2006
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
read is a builtin command in sh, bash, ksh. In C-like shells a method to read a line of input is
On my system the header unistd.h is mainly provided from the glibc package, that are the standard C libraries. What you're referring to are the kernel headers which basically provide definitions of the system calls. Anyway, returning to your original question, I don't think you will ever find a package providing a "pause" command, but maybe "sleep" is what you're looking for. Or, if you're experienced in C programming, you may build your customized "pause" command!
|
Thank you for your comments.
I can use the 'read -p "Press Enter to continue" ' in the bash environment for my needs.
Please close the inquiry.
Thanks,
Jim McConville
|
|
|
All times are GMT -5. The time now is 11:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|