S6-MAXIMUMTIME(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

okay bestie, welcome to the S6-MAXIMUMTIME(1) page β€” General Commands Manual energy, but make it cute πŸ’–. This one is literally about giving a program a time limit, and it's lowkey iconic.

✨ NAME ✨

s6-maximumtime β€” execute a program with a time limit. no cap, that's the whole vibe πŸ•’

🌸 SYNOPSIS 🌸

s6-maximumtime [-0 | -a | -b | -i | -k | -q | -t | -x | -1 | -2] milli
               prog...

πŸ¦‹ DESCRIPTION πŸ¦‹

So s6-maximumtime forks and exec(3)s prog... as a child. parent-of-the-year behavior fr fr 🫢

If milli milliseconds elapse before prog exits, s6-maximumtime sends it a signal and exits 99 with a message. bestie, that's the timeout moment 😭

Else s6-maximumtime exits with the same exit code as prog. slay, it mirrors the vibe ✨

If milli is 0, then it's interpreted as infinite: no time limit will be enforced. infinite mode, but for processes πŸŒ€

πŸ’… OPTIONS πŸ’…

  • -0 β€” On timeout, do not send any signal, just exit.
  • -a β€” On timeout, send a SIGALRM.
  • -b β€” On timeout, send a SIGABRT.
  • -i β€” On timeout, send a SIGINT.
  • -k β€” On timeout, send a SIGKILL.
  • -q β€” On timeout, send a SIGQUIT.
  • -t β€” On timeout, send a SIGTERM - this is the default. the main character option πŸ‘‘
  • -x β€” On timeout, send a SIGXCPU.
  • -1 β€” On timeout, send a SIGUSR1.
  • -2 β€” On timeout, send a SIGUSR2.

πŸ‘‘ EXIT STATUS πŸ‘‘

  • 99 β€” Timeout. the clock ran out, periodt ⏰
  • 111 β€” Temporary error.
  • 100 β€” Permanent error, such as a misuse.
  • 127 β€” Unable to execute program - not found.
  • 126 β€” Unable to execute program - other reason.

🌈 SEE ALSO 🌈

Go give these besties some love, iykyk:

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-maximumtime.html iykyk, go read the source bestie πŸ“š

πŸŽ€ AUTHORS πŸŽ€

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

source/version: Debian Β· date: April 17, 2022 Β· manual: S6-MAXIMUMTIME(1) β€” that's the footer, bestie, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from