[Nut-upsdev] newhidups capture

Charles Lepple clepple at gmail.com
Fri Jan 27 14:07:17 UTC 2006


On 1/27/06, George Ross <gdmr at inf.ed.ac.uk> wrote:
> >    [root]# newhidups -u root -DD -x generic -x vendorid=0001 auto >
> > UPSdump.txt
> >
> > If I don't redirect the output to the .txt file, everything is printed
> > on the screen. If I add the redirect, the output is again printed on the
> > screen; the .txt file however only contains the first line of the output:
> >
> > Network UPS Tools: New USB/HID UPS driver 0.28 (2.1.0)
> >
> > a blank line or two and nothing else.
> > [...]
>
> You probably have to redirect stderr as well as stdout.

specifically,

    newhidups -u root -DD -x generic -x vendorid=0001 auto 2>&1 > UPSdump.txt

--
- Charles Lepple



More information about the Nut-upsdev mailing list