Run linux scripts for scheduled tasks on windows

Source: Internet
Author: User


From windows, scheduled tasks run linux scripts. The purpose of writing this example is to record this method. I haven't thought of a simple method yet! Periodically or manually execute linux scripts in windows. -------------------------------------------------------------------- Download putty. I am using a green version and the installation version should be okay. Check the following configuration to know www.2cto.com. First, configure putty 1.exe to open putty.exe and configure the IP address to connect to the server, 2. Click defalut settings, click save 3, click connection> SSH on the left, configure the action to be executed, and click savein Step 2 in Step 4. Close putty.exe and open again to check whether the configuration exists. 5. Create 123 in the same directory of putty.exe. bat file with the following content: putty.exe-pw <password> <user >@< remote ip> example: putty.exe-pw 123456 root@192.168.0.11 www.2cto.com 6, in order to make this batch of files can be executed on other computers, you need to export a registry information, otherwise, the putty configuration information will be lost after it is moved to another computer. Open the CMD command line, for example, --- Note: This Export command is also found in the community, and the specific link cannot be found, thank you !!! 7. The puttybak.regfile is the detailed configuration file of putty.exe. If it is executed on another computer, double-click the puttybak button for the first execution. reg file, export the configuration to the registry, and double-click 123. the bat batch processing file can run 192.168.0.11 server/home/gg/tttt. sh file. Of course, the premise is that the current connected user has the execution permission !!!!

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.