Linux pause command not on wiki.linuxquestions.org/wiki/P_commands
Linux - NewbieThis 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.
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.
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?
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
Code:
sleep
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.
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
Code:
sleep
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.
'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
Code:
set variable = $<
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!
read is a builtin command in sh, bash, ksh. In C-like shells a method to read a line of input is
Code:
set variable = $<
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.