Question

How to get 2 programs running?

  • Posted January 12, 2015

I’m really lost here. Created ubuntu droplet only, how would I download www.steampowered.com 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

Subscribe
Share

If you have two command line programs that block the terminal and you want to run both in the background while being able to switch back to them as needed you can accomplish this using screen.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.