Redirecting STDOUT

Michael Lednev liettneff at bk.ru
Fri Dec 21 09:14:18 PST 2007


Hello, jhall.

On 21 ??????? 2007 ?., 19:59:27 you wrote:

>> Hello, jhall.
>>
>> On 21 ??????? 2007 ?., 17:49:28 you wrote:
>>
>> jvn> tar -cvzf root.tgz /root > /dev/null 2>/home/jay/tarlog
>>
>> jvn> I'm sure it is something simple I am doing wrong, but I am not seeing
>> it.
>>
>> what is your shell?
>>
>> --
>> Best regards,
>>  Michael                          mailto:liettneff at bk.ru
>>
>>
jvn> /bin/sh

In that case you only redirecting STDERR to file. As you've been
already told STDOUT will be redirected with

$ command 1>file

or

$ command > file

adding 2>&1 will also redirect STDERR to this file

-- 
Best regards,
 Michael                          mailto:liettneff at bk.ru



More information about the freebsd-questions mailing list