Hi,
Is there a command that waits until a process is finished and then excecutes another one? I know I can do things like
Code:
command1 && command2
but what happens if I run only command1 and then change my mind and want command2 to be run once command1 has finished? (for instance, if command1 takes too long and I want to go to sleep, but shutdown my machine once command1 finishes). Is there something like
Code:
command1
after command1 command2
??
Thank you very much in advance!!