Create screen in linux and execute commands in batches

Source: Internet
Author: User
Run commands in batches in linux screen creation-general Linux technology-Linux technology and application information. For more information, see the following. In the CRT terminal interaction window, the following commands can be executed in batches
Cd/root/server
Sleep 3
Cd Config/
Svn up
Sleep 3
Screen
Gdb LoginServerd

But in the command line, cd/root/server & sleep 3 &&...... After screen is executed, all subsequent commands cannot be executed ??

Is there any way to write a script so that all commands can be fully executed? You can use php programming to call the API. Thank you very much for your ideas !!!
Related Article

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.