LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-09-2003, 05:23 PM   #1
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Rep: Reputation: 30
WMCPULoad Question?


Hi I recently downloaded WMCPULoad, and always I need to open a terminal then type wmcpuload -w -t to run the WMCPULoad, The questions is, what I need to do WMCPULoad autorun in the begin of Slackware?
 
Old 10-09-2003, 06:03 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I use xsession: Create an .xsession file in your home directory (if not already present) and add some stuff to it:

Code:
#!/bin/bash
wmcpuload -t -w &
wmnetload &
wmmemload &
exec windowmanager
The trailing ampersands ("&" characters) indicate the process should be started and then move on to the next. If you don't the launch items after won't ever get done (unless you kill the first process).
Finally, the exec line means "replace this script by running this application and terminate the X server when this process exits". It may sound a little weird but it works.

If you start X using startx from the shell this should work right away, but if you use GDM, KDM or XDM you will have to set the session type to Xsession at the login prompt.

For reference, here's my ~/.xsession:
Code:
#!/bin/bash
wmdrawer &
wmcpuload &
wmmemload &
wmnetload &
wmapmload &
Eterm -F -windows-profontwindows-medium-r-normal-*-*-110-*-*-c-*-microsoft-cp1252 -g 80x32+519+0 &
Eterm -F -windows-profontwindows-medium-r-normal-*-*-110-*-*-c-*-microsoft-cp1252 &
exec /usr/local/bin/fluxbox

hw
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 05:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 02:51 PM
2 part question: Speeding up MDK9.1/GNOME question wardialer Linux - Newbie 6 10-14-2004 04:16 PM
Question 1 Firewall Log Question 2 Network Monitor Soulful93 Linux - Networking 4 08-05-2004 12:05 AM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 03:02 PM

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

All times are GMT -5. The time now is 10:02 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
Open Source Consulting | Domain Registration