tag: 'propagating exit code'

Narrow your search:

    Log in Sign up
    3 Matching Annotations
    1. Feb 2021
    2. unix.stackexchange.com unix.stackexchange.com
      Keep exit codes when trapping SIGINT and similar?
      1
      1. TylerRick 21 Feb 2021
        in Public
        trapping signals handling interrupt signal propagating exit code
      Visit annotations in context

      Tags

      • propagating exit code
      • trapping signals
      • handling interrupt signal

      Annotators

      • TylerRick

      URL

      unix.stackexchange.com/questions/235582/keep-exit-codes-when-trapping-sigint-and-similar
    3. stackoverflow.com stackoverflow.com
      Elegant solution to implement timeout for bash commands and functions
      2
      1. TylerRick 21 Feb 2021
        in Public
        time run_with_timeout 3 sleep_and_exit 1 7; echo $?
        propagating exit code example
      2. TylerRick 21 Feb 2021
        in Public
        it propagates (Option -p) the returnlevel ($?) so you may use it for your purpose.
        command wrapper/shim propagating exit code exit codes (return codes)
      Visit annotations in context

      Tags

      • propagating exit code
      • exit codes (return codes)
      • command wrapper/shim
      • example

      Annotators

      • TylerRick

      URL

      stackoverflow.com/questions/24412721/elegant-solution-to-implement-timeout-for-bash-commands-and-functions
    Share:
    Group. Only group members will be able to view this annotation.
    Only me. No one else will be able to view this annotation.
    Hypothes.is
    • About
    • Blog
    • Bioscience
    • Education
    • Jobs
    • Help
    • Contact
    • Terms of Service
    • Privacy Policy