LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-15-2006, 09:34 PM   #1
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 652

Rep: Reputation: 33
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.
 
Old 07-15-2006, 10:21 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,822

Rep: Reputation: 120Reputation: 120
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.
 
Old 08-01-2006, 04:05 PM   #3
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 652

Original Poster
Rep: Reputation: 33
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.
 
Old 08-01-2006, 04:11 PM   #4
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,822

Rep: Reputation: 120Reputation: 120
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&
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ignoring difference of { and } anandss2004 Programming 7 11-01-2005 07:11 PM
Upsmon Software pete138 Suse/Novell 0 09-25-2005 08:16 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
UPSMON and UPSDISP MichaelP Linux - Software 0 03-15-2005 09:39 PM
up2date is ignoring me nattybumpo Linux - Networking 1 04-24-2003 01:38 AM


All times are GMT -5. The time now is 04:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration