running consecutive jobs at startup

Asked by Bill Lancaster

With the help of this website I'm running a job at start-up.

When its finished, I'd like to run another job.

The first job takes a variable amount of time from day-today

Any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Solved by:
Bill Lancaster
Solved:
Last query:
Last reply:
Revision history for this message
Senthil Kumar_Webrsk (webrsk-ideas) said :
#1

Can you share more details on this.
Are you using Cron jobs?

Revision history for this message
Bill Lancaster (bill-lancaster) said :
#2

Sorry - am running Ubuntu 10. Not running cron job.

Just need to run two consecutive jobs at startup

Bill

Revision history for this message
mycae (mycae) said :
#3

modify your command

eg

command1 && command2

the && means to run the second command after the completion of the first command, but only if the first command completes "succesfully" (return code 0). If you need unconditional execution of the second command, use || (double pipe symbol)

example:
$ echo "hello" && echo "world"
hello
world

Revision history for this message
Bill Lancaster (bill-lancaster) said :
#4

Worked a treat -Thanks