Thread: Wget
View Single Post
  #5 (permalink)  
Old 02-05-2008, 11:27 AM
Pommie Pommie is offline
Member
 
Join Date: Jan 2008
Location: Lytham UK
Posts: 37
Default

Thanks

I am familiar with the "/dev/null" bit what does the "2>&1" bit do?

Cheers

John

Answering my own question

> /dev/null pipes standard output to a black hole
2>&1 send error message to the same place

1 is standard output, 2 is error output

So to have only errors sent (which is in fact what I want) I just use > /dev/null

See a very useful article here for more detail

- http://www.xaprb.com/blog/2006/06/06...vnull-21-mean/

Last edited by Pommie; 02-05-2008 at 11:33 AM.
Reply With Quote