ps output redirection problem

Ignacio García Pérez iggarpe at terra.es
Wed Mar 28 05:45:57 PDT 2007


>>>> I just noticed that
>>>>
>>>> ps > out.txt
>>>>
>>>> ps 2>&1 > out.txt
>>>>
>>>> Produce an empty out.txt file. If no output redirection is used, the 
>>>> output of the ps command is as expected.
>>>>
>>>> Any idea of what's wrong?
>>>>    
>>>>         
>>> Are you using busybox statically linked to glibc?
>>>
>>>  
>>>       
>> I'm using busybox 1.4.2 dynamically linked to glibc.
>>     
>
> That clears glibc. What shell are you using?
>   
I'm using ash.

I've done some more tests and have verified that the problem occurs in 
busybox 1.3.2, busybox 1.4.2, both under kernel 2.6.19 and 2.6.20.

By the way, I've also noticed that "ifup -a" does not work in busybox 
1.3.2 (segfaults).
> And could you please reply also to the list, to keep the discussion
> there?
>
>   



More information about the busybox mailing list