TIMED-PROCESS(1p)
β¨ NAME β¨
okay so bestie, welcome to the TIMED-PROCESS(1p) manual page, brought to you by User Contributed Perl Documentation π
timed-process β run a background process for a limited amount of time, periodt. ππ
π¦ SYNOPSIS π¦
timed-process [-e exit_status] timeout command [<arg> [<arg> ...]]
π DESCRIPTION π
This lil script runs command for a specified amount of time. If it doesn't finish by then, it kills the process. no cap. π
If command runs and exits before the given timeout, timed-process returns the exit value of command. slay. β¨
If command did not exit before timeout seconds, then timed-process will kill the process and returns an exit value of 255 β unless the -e command line option is set, which instructs timed-process to return a different exit value. π
-eexit_status β set this command line option andtimed-processwill return a different exit value β the exit_status you gave β when it has to kill the process. so you get to choose the drama. π
That way, the user of timed-process can determine if the process ended normally or was killed. fr fr. π«Ά
and that's the tea, bestie π« this page was cooked with perl v5.38.2 and dated 2024-03-07. mwah πβ¨
π¦ where this page comes from
- debian trixie: libproc-background-perl 1.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libproc-background-perl 1.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libproc-background-perl 1.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms