Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nohup(1) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                 nohup(1)



        _________________________________________________________________
        nohup                                                     Command
        run a command immune to hangups and quits
        _________________________________________________________________


        SYNTAX

        nohup command [ arguments ]


        DESCRIPTION

        Nohup executes command with hangups and quits ignored.  If output
        is not re-directed by the user, both standard output and standard
        error are sent to nohup.out.  If nohup.out is not writable in the
        current directory, output is redirected to $HOME/nohup.out.  If
        standard output is redirected but standard error is not, standard
        error is automatically redirected to the same file as output.


        EXAMPLE

        It is frequently desirable to apply nohup to pipelines or lists
        of commands.  This can be done only by placing pipelines and
        command lists in a single file, called a shell procedure.  One
        can then issue:

             nohup sh file

        and the nohup applies to everything in file.  If the shell
        procedure file is to be executed often, then the need to type sh
        can be eliminated by giving file execute permission.  Add an
        ampersand and the contents of file are run in the background with
        interrupts also ignored (see sh(1)):

             nohup file &

        An example of what the contents of file could be is:

             tbl ofile | eqn | nroff > nfile


        SEE ALSO

        chmod(1), csh(1), nice(1), sh(1).
        signal(2) in the Programmer's Reference for the DG/UX System


        WARNINGS




        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                 nohup(1)



        nohup command1; command2  nohupappliesonlytocommand1

        nohup (command1; command2)
                                  is syntactically incorrect.

                                  Be careful of where standard error is
                                  redirected.  The following command may
                                  put error messages on tape, making it
                                  unreadable:

                                            nohup cpio -o <list
                                  >/dev/rmt/1m&
                                  while
                                            nohup cpio -o <list
                                  >/dev/rmt/1m 2>errors&

                                  puts the error messages into file
                                  errors.




































        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



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