L
L
littleguga2015-07-20 11:22:20
System administration
littleguga, 2015-07-20 11:22:20

How to start a task after the previous one is completed?

For example, I need it to archive a certain directory once a week and immediately after it packs everything into an archive, perform several other actions.
How to write it down correctly?
Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Extor, 2015-07-20
@littleguga

Use the following construction:
sh task1.sh && sh task2.sh
In this case, task2.sh will be executed after task1.sh successfully completes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question