Running script in background
Posted: Mon Sep 15, 2014 9:01 am
Hi,
I'm trying to run a process in the background so as when I log out it keeps running or I can add it to rc.local so as it starts automatically. I've got it working fine but the process hog's the whole of the cpu time, when I run it just in a terminal it uses fractions of percent of the cpu but in the background it's using around 90%.
I've tried
sudo ./cgminer -o <insert pool url> -u <username> -p <password> --api-allow W:0/0 --api-listen &
and also
sudo nohup ./cgminer -o <insert pool url> -u <username> -p <password> --api-allow W:0/0 --api-listen &
and a few variations to pipe the output to logging files.
Any help appreciated
Thanks.
I'm trying to run a process in the background so as when I log out it keeps running or I can add it to rc.local so as it starts automatically. I've got it working fine but the process hog's the whole of the cpu time, when I run it just in a terminal it uses fractions of percent of the cpu but in the background it's using around 90%.
I've tried
sudo ./cgminer -o <insert pool url> -u <username> -p <password> --api-allow W:0/0 --api-listen &
and also
sudo nohup ./cgminer -o <insert pool url> -u <username> -p <password> --api-allow W:0/0 --api-listen &
and a few variations to pipe the output to logging files.
Any help appreciated
Thanks.