running consecutive jobs at startup

Asked by Bill Lancaster on 2011-02-21

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:
2011-02-22
Last query:
2011-02-22
Last reply:
2011-02-21

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

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

Just need to run two consecutive jobs at startup

Bill

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

Worked a treat -Thanks