LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   upsmon ignoring &> (https://www.linuxquestions.org/questions/linux-software-2/upsmon-ignoring-and-464439/)

Red Squirrel 07-15-2006 09:34 PM

upsmon ignoring &>
 
When I start upsmon at startup, I want the output like "UPS START!!!!" and all that crap to go in an file, so I used &> but its still ignoring that, and still outputing to screen. Anyone know how to fix this?

I simply added a line in /etc/rc.d/rc.local to start a script called /data/scripts/start_os and in that script it calls UPSmon with the right parameters with &>/var/log/upsmon.log at the end of the command. So I really can't see why it aint working.

crabboy 07-15-2006 10:21 PM

The upsmon program probably writes to syslog and not to either stdout or stderr, which you are capturing with &>. I'm not sure about the syslog specifics with FC, but you may want to check the man page for syslog.conf and look what type of messages are to be written to the console.

Red Squirrel 08-01-2006 04:05 PM

I tried that (good to know about that option btw, in case I get another program doing this) but its still insiting on outputing to the console.

The problem with this is, I have no way of knowing when and why the server shut down, if a power issue arrises and I'm not here. I need some kind of log to look at, but its just outputting it all to the console.

crabboy 08-01-2006 04:11 PM

If something like the command below does not even work, then it may be writing to the console device directly.
Code:

nohup /path/to/upsmon&


All times are GMT -5. The time now is 11:57 PM.