I'm writing a simple Windows batch script to allow me to execute some Linux command on my remote server with the help of plink.exe
.
call set argument1=plink -pw mypwsswd username@172.19.48.111 cd ~/project; make clean; make -j8
call plink %%argument1%%
In a word, it will rebuild my C++ project on the remote server.
When I double click the batch, it works except that I have to type an Enter each time.
Access granted. Press Return to begin session
As you see, after I getting this windows, I have to type an Enter to continue.
Is there some way to avoid this? For example, typing an enter automatically?