How to get 2 programs running?

Posted January 12, 2015 1.9k views

I’m really lost here. Created ubuntu droplet only, how would I download client and another program and run it 24/7 just to idle hours?

Was told something completely different, guess he wanted referral code bonus…

Just push me in the right direction, I don’t want to be spoon fed the whole time. Since I’m here I may as well learn.

At the moment I’m trying to add VNC desktop but I’ll want to learn how to do everything by code as it’ll take less ram. I’m someone who literally came here without any knowledge whatsoever but I’m not going to quit now. xD

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Rather than trigger on ‘idle’, there is a command called nice that can request the kernel scheduler to give the named program a lower priority. This can be used in scripts as well as the command line.

Program daemons are usually run in the background, and there are a few typical ways they are started:

  1. Through a distribution specific or program specific startup command
  2. Using scripts in the /etc/rc.* directories
  3. By cronjob
  4. System programs that are triggered by system events that they have subscribed to.

Have fun learning these things.