All I want to see is time's output which is stderr so I can see how long the file download took. I've tried redirecting stderr to a file with "2> /some/file.txt" but it does not capture anything. I also cant redirect stderr to stdout and pipe the output to another command to get the info I want
Anyone know what I am doing wrong.. or does anyone have a better way to determine how fast a machines wan connection is to a specific server?
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.
( 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.