Call command in a batch

Source: Internet
Author: User

There are a number of steps that should be taken before the package is written, so the batch command is slightly more and must be executed sequentially.

However, in the implementation process, after discovering that the external bat is called, the command is interrupted and subsequent commands are no longer executed!

The solution is to start the other console with the start command to execute the external bat, but there is still a problem: The subsequent command does not wait for the external batch to finish executing, but it executes immediately, causing some problems. The temporary solution is to use a pause after start. Although the method is feasible, but is not fully automatic, needs to click once, if simultaneously executes several, that must click many times, is not very convenient. And each start will also open a console, and finally there may be dozens of consoles that need to be manually shut down, greatly troublesome.

Under Linux, there is no such thing as using the shell. Later inadvertently, using the C + + system to perform batch processing, but also to wait for the call to complete, and then execute the next, so that the batch processing must have a solution, began to find, and finally found the calling command ...

Change all start to call and solve the problem perfectly.

This article from "Mountain Heavy Water Complex" blog, declined reprint!

Call command in a batch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.