I want to run a bash script like:
#!/bin/bash
echo 'cpu limit bomi player at 40%'
cpulimit -v -e bomi -l 40
Just 20 seconds after Login into my user. Can you please help me to do that? I searched Google and did what they said but it didn't work for me.
If it's possible for the bash script to run in a new terminal window that will display the output, please tell me what I have to do to achieve that.
sleepwithsu -c user '<command>'. – Bruno Pereira Apr 10 '15 at 06:40sudomust be replaced bysu -c useras per @BrunoPereira comment. – Rmano Apr 10 '15 at 08:21cpulimit, it does not limit cpu access to executables that you are not running, for that to workbomineeds to be already started and running in your system so this approach is all wrong. – Bruno Pereira Apr 10 '15 at 08:50