I have an Ultra 100va/600Watt UPS and trying to get the software working properly in linux. The problem is, it outputs this:
Thu Jun 16 21:37:01 EDT 2005
Copyright(c) Powercom Co., Ltd., all rights reserved.
UPSMON V0.91a program start!
UPSMON: The UPS serial port use /dev/ttyS0.
UPSMON: Ac Fail count down is seted 10 secs.
UPSMON: UPS shutdown delay time is seted 5 mins and 0 secs.
Check UPS type.....
Copyright(c) Powercom Co., Ltd., all rights reserved.
UPSMON V0.91a program start!
UPSMON: The UPS serial port use /dev/ttyS0.
UPSMON: Ac Fail count down is seted 10 secs.
UPSMON: UPS shutdown delay time is seted 5 mins and 0 secs.
Check UPS type.....
Then the rest of the output is no longer made through the > or >> buffer, but directly on the OS screen. How can I capture it all into the >> buffer? When I run it directly it will output all that, then show the prompt, and any other output is done on top of the prompt. So it seems once it's initialized, it leaves the buffer and any other output is seperate.
It does generate a log file though, but I rather have it go where all my other logs go - and there's not much config to it, just a command to start it, I specify the UPS shutdown delay, OS shutdown delay, and port, and that's it. I'll let it charge overnight and unplug it tomorow to test the shut down proceedure.
Thu Jun 16 21:37:01 EDT 2005
Copyright(c) Powercom Co., Ltd., all rights reserved.
UPSMON V0.91a program start!
UPSMON: The UPS serial port use /dev/ttyS0.
UPSMON: Ac Fail count down is seted 10 secs.
UPSMON: UPS shutdown delay time is seted 5 mins and 0 secs.
Check UPS type.....
Copyright(c) Powercom Co., Ltd., all rights reserved.
UPSMON V0.91a program start!
UPSMON: The UPS serial port use /dev/ttyS0.
UPSMON: Ac Fail count down is seted 10 secs.
UPSMON: UPS shutdown delay time is seted 5 mins and 0 secs.
Check UPS type.....
Then the rest of the output is no longer made through the > or >> buffer, but directly on the OS screen. How can I capture it all into the >> buffer? When I run it directly it will output all that, then show the prompt, and any other output is done on top of the prompt. So it seems once it's initialized, it leaves the buffer and any other output is seperate.
It does generate a log file though, but I rather have it go where all my other logs go - and there's not much config to it, just a command to start it, I specify the UPS shutdown delay, OS shutdown delay, and port, and that's it. I'll let it charge overnight and unplug it tomorow to test the shut down proceedure.