Re: what is 2>&1 ? why not & only ?

From: Michael Fuhr <mfuhr@dont-contact.us>
Date: Sun, 7 Feb 1999 10:33:44 -0700

On Sun, Feb 07, 1999 at 06:38:19PM +0200, Evren Yurtesen wrote:

> I was looking into the RunCache script and I have
> seen that 2>&1 is used for backgrounding the job
> but why not & only ?
> what is the difference?

2>&1 is redirection, not backgrounding. In Bourne Shell & friends it
means that output going to file descriptor 2 (stderr) should go the
same place as file descriptor 1 (stdout).

-- 
Michael Fuhr
http://www.fuhr.net/~mfuhr/
Received on Sun Feb 07 1999 - 10:14:31 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:28 MST