Article View: general
Article #329running background commands (nohup and ampersand)
From: David Trueman
Date: Fri, 22 Jun 1984 20:55
Date: Fri, 22 Jun 1984 20:55
17 lines
1196 bytes
1196 bytes
The "nohup" command (used to run a command in the background and get your
prompt back right away) has been changed. It now enforces the previously
voluntary restriction of running one such command at a time.
Now, you can safely run a second command some time after the first; if the
first has not finished, "nohup" will complain and refuse to run the second.
The correct method for running a command in the background remains:
% nohup ms -p lpr file1 file2 &
where "nohup" and "&" are obligatory and the "ms -p lpr file1 file2" could
be any normal command.
The ampersand (&) must NEVER be used without "nohup".
--
David Trueman @ U of Toronto Zoology
{allegra,ihnp4,linus,decvax}!utzoo!david
Technical Details
Message-ID:
<3980@utzoo.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!davidShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!david From: david@utzoo.UUCP (David Trueman) Newsgroups: general Subject: running background commands (nohup and ampersand) Message-ID: <3980@utzoo.UUCP> Date: Fri, 22-Jun-84 16:55:23 EDT Article-I.D.: utzoo.3980 Posted: Fri Jun 22 16:55:23 1984 Date-Received: Fri, 22-Jun-84 16:55:23 EDT Organization: U of Toronto Zoology Lines: 17