The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-10-2009
trey85stang trey85stang is offline
Registered User
  
 

Join Date: May 2008
Posts: 74
Quote:
Originally Posted by Corona688 View Post
The problem is, 'time' is not an external command, it is a builtin, and one that doesn't seem to obey normal redirection either! I had to wrap it in brackets to get the shell to catch it.

Code:
( time wget -q sitename -O /dev/null ) 2> wlog

wget's built-in -q is easier than > /dev/null 2> /dev/null, and -O /dev/null stops it from cluttering your current directory with downloaded files.

thank you!, I may have head of hair left after I finish this script after all

This was driving me nuts! and the -O option is nice.. I was palnning on rm'ing the downloaded file afterwards... now I dont have to.