Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dex4er/timeout.pl
The very small and very useful script which runs a shell command with bounded time and kills spawned process if it is timeouted.
https://github.com/dex4er/timeout.pl
Last synced: 10 days ago
JSON representation
The very small and very useful script which runs a shell command with bounded time and kills spawned process if it is timeouted.
- Host: GitHub
- URL: https://github.com/dex4er/timeout.pl
- Owner: dex4er
- Created: 2012-01-04T12:00:41.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-04-26T11:40:09.000Z (over 8 years ago)
- Last Synced: 2024-10-28T09:01:27.433Z (about 2 months ago)
- Language: Perl
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
timeout - Run command with bounded time.
# SYNOPSIS
**timeout** **-h**
**timeout**
\[-_signal_\]
_time_
_command_
...# README
**timeout** executes a command and imposes an elapsed time limit. When the
time limit is reached, **timeout** sends a predefined signal to the target
process.# DESCRIPTION
**timeout** executes a command and imposes an elapsed time limit.
The command is run in a separate POSIX process group so that the
right thing happens with commands that spawn child processes.# OPTIONS
- -_signal_
Specify an optional signal name to send to the controlled process. By default,
**timeout** sends **KILL**, which cannot be caught or ignored.- _time_
The elapsed time limit after which the command is terminated.
- _command_
The command to be executed.
# RETURN CODES
- 0..253
Return code from called command.
- 254
Internal error. No return code could be fetched.
- 255
The timeout was occured.
# PREREQUISITES
- [perl](https://metacpan.org/pod/perl) >= 5.006
- [POSIX](https://metacpan.org/pod/POSIX)# COREQUISITES
- [Pod::Usage](https://metacpan.org/pod/Pod::Usage)
# SCRIPT CATEGORIES
UNIX/System\_administration
# AUTHORS
Piotr Roszatycki
# LICENSE
Copyright 2004-2007, 2016 by Piotr Roszatycki .
Inspired by timeout.c that is part of The Coroner's Toolkit.
All rights reserved. This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License, the
latest version.