running two linux commands sequentially in background
i have cmd1 , cmd2
if i write
in a script cmd1 abd cmd2 both starts getting executed parallely in background.
i want first cmd1 to run in background and once it finishes execution cmd2 should be executed.
how to do that ?