In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the timeout command under Linux. I hope you will get something after reading this article. Let's discuss it together.
Timeout is a command-line utility that runs the specified command and terminates the command if it is still running after a given period of time. The timeout command is part of the GNU core utility package, which is installed in almost all Linux distributions.
Use the method timeout [option] numeric [suffix] command [parameter].. .1 suffix "s" for seconds (default), "m" for minutes, "h" for hours, "d" for days.
Options detail the parameters that the long option must use and are also required for the short option. The-s,-- signal= signal specifies the signal to be sent when the timeout occurs. The signal can be a signal name similar to "HUP" or the number of signals. Check "kill-l" for a list of signals-- help displays this help and exits-- version displays version information and exits. If the program times out, the number of exit states is 124, otherwise the program exit status is returned. If no signal is specified, it defaults to TERM signal. The TERM signal kills the process when it does not capture this signal. The KILL (9) signal may be required for other processes, but of course this signal cannot be captured. 12345678910 example timeout 10 command1 explains: if the command command ends within 10 seconds, it ends safely and runs for more than 10 seconds, it will be forced to kill.
After reading this article, I believe you have some understanding of "how to use timeout commands under Linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.