How do I create program requisites?

Asked by Brutal_Moose

     I am a new Linux user. When offering a solution to this issue, please list every single step it will take. Please do not assume I have the knowledge or experience required to make decisions or choices for myself when implementing solutions. Thank you.

     I am using Ubuntu 15.04. How do I automatically prevent one user program from starting, without another, requisite program from starting first? I would like to automatically require program 1 to start, before program 2 may start.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Make a bash script like the below:

#!/bin/bash
command1 &
sleep 3
command2

The ampersand will background the first command and allow the script to continue. The 3 second sleep allows it to start up then run the 2nd command.

Revision history for this message
Brutal_Moose (brutalmoose) said :
#2

Thank you Parsnip. I know you are trying to help but that answer is too much for me, it raises too many other questions and possibilities. Maybe it means I should get help from someone in person.

Revision history for this message
Brutal_Moose (brutalmoose) said :
#3

I signed up for Ubuntu's paid tech support service a while ago. I have $100 ready to pay them. It's been a while since I registered with it. They emailed me in response......but only to confirm they had received my registry, not to accept my money. Maybe Ubuntu hates money....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Well, maybe if you gave some detail like the programs that need to be ran then I can give an exact solution. How can anyone specify more than I have when your question doesn't give any detail at all....?

With the kind of attitude you have you will struggle with computers. You need to dive in and get dirty. Break things, but you will learn faster

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

You request detailed information from the support, but do not provide enough information yourself.
Just as an example: It might help understanding your problem, if you name the programs that should run.

I see two possibilities for the whole case:

1. If you try starting program B, and if program A is not running at that time, prevent B from starting and show an error message
or
2. If you try starting program B, and if program A is not running at that time, automatically start program A, and then start program B

What do you want?

Revision history for this message
Brutal_Moose (brutalmoose) said :
#6

Thank you both for taking stabs at this problem, and my previous ones, I do appreciate it. Your responses tell me that my communication has failed completely, so I am going to try to clear up my response here.

Many computer issues can be solved with online forums like these, but some cannot, and require face to face interaction. In hearing your proposed solution, Parsnip, I learned that this was the wrong medium to search for help on this particular issue. I fully intended for my reponse to be the end of this thread, but you and Manfred have continued to write here. I searched for a method to close this thread without falaciously labeling that the issue had been solved.

In numerous websites that host user's content, they provide a method to delete a post, but there is no such option here. How do I end this thread, without claiming that it was solved? Do they trust users with much power here, or do I need the root password? ;)

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

There is only a limited number of statuses for a Launchpad question document.
Open / Needs information / Answered / Solved / Expired / Invalid

If you do not expect any further help on a topic, you can either set the status to "solved", or you can just leave the document as it is. A question document can stay in the status "Anwsered" forever, or it will automatically turn into "Expired" if it stays in "Open" or "Needs Information" without any further action on it for two weeks.

A possibility to delete postings does not exist.

You have written in comment #6 that you want to end this thread, so I recommend that you just leave is as it is. This current response sets it to "Answered", and that is a status that indicates that no further action is required unless the original poster requests that.

Revision history for this message
Brutal_Moose (brutalmoose) said :
#8

Thanks Manfred!

Can you help with this problem?

Provide an answer of your own, or ask Brutal_Moose for more information if necessary.

To post a message you must log in.