> [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.
--
Dr George D M Ross, School of Informatics, University of Edinburgh
Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: gdmr@inf.ed.ac.uk Voice: +44 131 650 5147 Fax: +44 131 667 7209
PGP: 1024D/AD758CC5 B91E D430 1E0D 5883 EF6A 426C B676 5C2B AD75 8CC5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 239 bytes
Desc: not available
Url :
http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20060127/8288a635/attachment.pgp