Very simple, but very practical

Source: Internet
Author: User

1. Use MySQL to import the query results to a file.

Mysql-umsg-PMSG message-e "select appkey from app"> 1.txt

2. when using runtime to call system commands, I encountered a problem. I want to compress a file, and the directory where this file is located is dynamically created. Zip is used for compression, the last two parameters fill in the absolute path name. It is found that the original directory will be exposed when the compressed file is decompressed. After thinking a lot of ways, we plan to call two commands. First, we enter the Directory and then compress the file, failed. Later, we can see that there are several examples of runtime.exec(partial logs. I did not take a look at them carefully, but I tried to write the compressed command to the relative path in runtime.exe C (CMD, null, directory. Done.

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.