Rickynomero
Posts: 2
Joined: Fri Feb 26, 2016 5:21 pm

how to starts 2 programs at once

Wed Mar 02, 2016 7:51 pm

Im trying to have vlc start a song when i start another program on raspbian. I have raspberry pi 2. The program im using is pikix pi, its a video mixer, so what i want to do is have a song play from vlc while im in the video mix application, but dont want to do it manually each time.

Goraxium
Posts: 122
Joined: Tue Jan 26, 2016 1:42 pm

Re: how to starts 2 programs at once

Thu Mar 03, 2016 7:17 am

If you're running it from the terminal, add a & to the end of the program call to fork it to the background. One thing to note, though: Jessie has a tendency to kill programs started this way from scripts that are launched from X, as soon as the script finishes running (almost like it's not forking the programs properly). Works fine from a normal terminal though (even after you close it).

Return to “C/C++”