LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-15-2006, 09:34 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
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
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
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
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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



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



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 / openSUSE 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration