Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sleep(1) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

alarm(2)

sleep(3C)



     sleep(1)                   DG/UX 4.30                    sleep(1)



     NAME
          sleep - suspend execution for an interval

     SYNOPSIS
          sleep time

     DESCRIPTION
          Sleep suspends execution for time seconds.  You can use it
          to execute a command after a certain amount of time, as in:

               (sleep 105; command)&

          or to execute a command every so often, as in:

               while true
               do
                    command
                    sleep 37
               done


     EXAMPLES
          $ sleep 60; date

          Waits about 60 seconds, then executes the date(1) command.
          Using this format of the command, your current shell waits.

          $ ( sleep 60; date )&

          Waits about 60 seconds, then executes the date(1) command.
          This format of the command starts a background shell and
          allows your current shell to continue.  For most
          applications of sleep this is probably prefered.

          $ while true; do ps -a; sleep 10; done &

          Executes the ps command approximately every 10 seconds.
          Prints information about all processes associated with the
          terminal except for process group leaders.

     SEE ALSO
          alarm(2), sleep(3C) in the Programmer's Reference for the
          DG/UX System












     Licensed material--property of copyright holder(s)         Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026