TIMED-PROCESS(1p)

πŸ“¦
version 1.32 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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. πŸ‘€

  • -e exit_status β€” set this command line option and timed-process will 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