[Go] linux command--timeout

Source: Internet
Author: User

[From] 54315390

Linux command--timeout

Introduction to Commands

Runs the specified command and kills the process if it is still running after a specified time. The time used to control the program run.

How to use
Timeout [option] number [suffix] command [parameter] ...

The suffix "s" stands for seconds (the default), "M" stands for minutes, "H" stands for hours, and "D" represents the day.

Detailed options
The long option must use parameters that are also required for short options.   -S, the--signal= signal        Specifies the signal sent at timeout. The signal can be a signal name like "HUP" or a signal number.        View " kill-l " to get a list      of signals --        help displays this assistance and exits       --        version displays release information and exits if the program times out, the number of exits is 124, otherwise the program exits the status. If no signal is specified, the default is the term signal. The term signal kills the process when the process does not capture this signal. For other processes it may be necessary to use the Kill (9) signal, which of course cannot be captured.

Example
10 command

Explanation: If the command order ends in 10 seconds, the peace ends and runs for more than 10 seconds and will be forcibly killed.

[Go] linux command--timeout

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.