The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
noob question about redirecting stderr
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
noob question about redirecting stderr
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-10-2009
Corona688
Registered User
Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,969
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.
Corona688
View Public Profile
Visit Corona688's homepage!
Find all posts by Corona688
Find Corona688's past nominations received
Find Corona688's present nominations given