Friday: IPC connection and remote execution

Source: Internet
Author: User

Today, we are almost all busy with IPC Connection Scripts. We need to execute a section on the remote target machine.ProgramIn addition, the remote target machine does not need to install any client software. A natural idea is IPC, but it seems that there are still several problems to solve.

First of all, I wrote all these operations in a script, which is not interactive. Some commands have the same success and failure error codes, which is troublesome. second, the AT command only allows the program to be executed at a certain time, but cannot be executed after the current time. in order to solve this problem, we once had a very rogue technique to set the time of the target machine. however, using net time seems to only allow the target machine to synchronize with the time server in a domain, and cannot set the time separately (if thisArticleIf a reader has a good solution, please feel free to advise. Thank you very much ).

In addition, the current directory of the task is sysroot by default. For details about the task execution log, refer to a schedule-related file in system32. when I use a scheduled task to execute a JS script, it seems that message boxes and the like are not supported, no matter whether I add interactive.

The second problem is File compression and decompression. it is best to copy the ZIP file to the target machine and decompress it. however, the unzipping program that comes with Windows does not extract a directory, and you do not know what a file is. so I called WinRAR on the local (FTP server) and decompressed it first, and then copied the entire directory to the target machine using xcopy.

I chatted with an old classmate at noon. I didn't go to bed, and my mind bloomed in the afternoon. in the afternoon, after the XP (that is, the target machine) in the virtual machine is restored to a snapshot, the IP address is not set yet. however, I am still connected to IPC, and I still feel incredible. it's stupid.

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.