Home > OS >  You need to use the batch restart web server certain commands
You need to use the batch restart web server certain commands

Time:10-10

Every day I want to use a batch file by Plink restart some service on the network sound server regularly, but every time I run to let me enter the password, can you tell me the need to modify to achieve automatic input password to run automatically? Existing bat command is as follows:
. , restart the batch command, plink. Exe 10.10.0.204:22 - l root "service postgresql restart. Service mysqld restart; Service ss3000e restart; Service jboss restart; Service sscApp restart; Service ivrserverd restart; Service acdserverd restart; Service recserverd restart; Getkey
"

Pause

CodePudding user response:

Don't know which version is your plink, if want to add a password to the parameters, you can use the
 - pw password 
this parameter
  • Related