LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-13-2012, 08:49 PM   #1
fajarpri
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
Question Help cpulimit command


Hi all,
I want to run several cpulimit command from one script, but it only runs the 1st one. I think it is because cpulimit runs in the foreground. How do I overcome this?

Code:
#!/bin/bash
cpulimit -e lnotes -l 30
cpulimit -e notes2 -l 30
cpulimit -e taskldr -l 30
Thank you.
Fajar
 
Old 04-14-2012, 01:48 PM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,192
Blog Entries: 23

Rep: Reputation: 278Reputation: 278Reputation: 278
Quote:
cpulimit -e lnotes -l 30&
Just thinking out loud...

Thor
 
1 members found this post helpful.
Old 04-14-2012, 07:37 PM   #3
fajarpri
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks so much Thor, you are right. It works
 
Old 04-15-2012, 06:01 AM   #4
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,192
Blog Entries: 23

Rep: Reputation: 278Reputation: 278Reputation: 278
Glad I could help out
 
  


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
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 03:38 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM
how to copy drive using dd and tee command parallely? source code of dd command mdfakkeer Linux - Software 1 02-10-2010 01:31 PM
LXer: How To Limit CPU Usage Of A Process With cpulimit (Debian/Ubuntu) LXer Syndicated Linux News 0 09-14-2009 09:50 AM
segmentation fault when using cpulimit Adrianrob Linux - Software 1 07-23-2008 10:44 PM


All times are GMT -5. The time now is 09:53 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