LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2011, 05:23 PM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
xfce4-panel - show output of command?


Hi,

Is it possible to show the output of a command in xfce4-panel? Like you would do with Conky.

The Xfce battery monitor consistently uses a bit of my CPU so I wish to run "acpi" (and work out a clever way to just show the percentage) every 5 or 10 minutes in the panel.

Thanks
 
Old 02-20-2011, 02:26 AM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,296

Rep: Reputation: Disabled
hi

I don't have a portable but why not create a cronjob every 10 minutes?

something like /etc/crontab
------------------------------------------------------------------------------------------------
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

(your bit might be)

*/10 * * * * root /usr/lib/xfce4-battery-plugin/xfce4/panel-plugins/xfce4-battery-plugin

(not sure if you then need a kill command but maybe if it does not stop add a fuser command?

*/12 * * * * root /bin/fuser -k /usr/lib/xfce4-battery-plugin/xfce4/panel-plugins/xfce4-battery-plugin

showing for 2 minutes with luck?

#

Last edited by aus9; 02-20-2011 at 02:31 AM.
 
Old 02-21-2011, 12:36 PM   #3
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
It's a bit on the old side, but perhaps xfce4-genmon-plugin would do the trick?
 
Old 02-21-2011, 01:51 PM   #4
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Thanks, that's just what I was looking for! What do you mean by "old"?
 
Old 02-21-2011, 02:24 PM   #5
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
What do you mean by "old"?
I just noticed that the download on the site was for Xfce 4.4. I neglected to consider that versions of it in modern distro repositories would be newer (or at least would work with newer versions of Xfce).

Last edited by MrCode; 02-21-2011 at 02:26 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cmake or make: debug output, show command Ephracis Programming 4 03-01-2008 04:28 AM
How can I page the output of the show tech command on my cisco 2950? abefroman Linux - Networking 1 12-17-2007 07:59 PM
Getting rid of XFCE4-panel...using xfce4 and Ubuntu jagibbs Linux - Software 1 04-06-2006 06:00 AM
Without xfce4-panel caneca Linux - Newbie 1 10-20-2005 05:29 PM
command to show kicker panel cbonar Linux - General 0 12-03-2004 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:21 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration