plink

Automate mysqldump to local Windows computer

我的梦境 提交于 2019-12-06 09:08:26
I'm trying to use plink on Windows to create a tunnel to a Linux machine and have the dump file end up on the Windows machine. It would appear that this answer would work and is the basis of my question. But trying it out and looking at other answers I find that the dump file is still on the Linux machine. I'm trying this out in my local environment with Windows and Ubuntu 14.04 before moving to production. In Windows 8.1: plink sam@192.168.0.20 -L 3310:localhost:3306 mysqldump --port=3310 -h localhost -u sam -p --all-databases > outfile.sql I've tried swapping localhost in the second with 127

How to submit Plink “Access granted. Press Return to begin session” prompt automatically

北城以北 提交于 2019-12-06 07:30:12
问题 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

new comint mod in emacs for plink (putty): Symbol's function definition is void

纵然是瞬间 提交于 2019-12-04 17:22:24
i want to use a new comint mode for plink(putty), i put the code in init.el, but if M-x run-plink, i got below error: let*: Symbol's function definition is void: comint-check-proc ;; path (defvar plink-file-path "C:/Programme/Putty/plink.exe" "Path to the program used by `run-plink'") ;; arguments (defvar plink-arguments '() "Commandline arguments to pass to `plink'") ;; prompt (defvar plink-prompt-regexp "^>\s" "Prompt for `run-plink'.") ;; Run-plink (defun run-plink () "Run an inferior instance of `plink.js' inside Emacs." (interactive) (setq plink-buffer "*Plink*") (let* ((plink-program

get return code from plink?

浪子不回头ぞ 提交于 2019-12-04 01:59:08
In a DOS batch script, I'm running a single command on a remote (also windows) computer using plink. Formerly, this command was only run on the local machine, and was relying on the return code to determine success. Is there a way to easily get this information back through plink? That's not possible with plink . The current consensus is to have the remote script echo its exit code to a log file, then use pscp to transfer the log file to the local machine. See http://fixunix.com/ssh/74235-errorlevel-capturing-plink.html . with plink 0.66 C:\Code>echo Y | "C:\Program Files (x86)\PuTTY\plink.exe

Configure Git to use Plink

匿名 (未验证) 提交于 2019-12-03 02:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to configure Git to use Plink. It worked for me many times before. Now, for some reason, this option isn't available to me (it is disabled): I tried uninstalling and reinstalling Git a hundred times. Nothing. I can't get to this option enabled. 回答1: This is an old question, and I just have the same problem, just to be sure I will write down the solution that worked for me. The msysgit installer didn't show the screen that allows to select between the openssh client and the Tortoise (plink) The solution is to install Putty (or

new comint mod in emacs for plink (putty): Symbol's function definition is void

自作多情 提交于 2019-12-02 03:12:30
问题 i want to use a new comint mode for plink(putty), i put the code in init.el, but if M-x run-plink, i got below error: let*: Symbol's function definition is void: comint-check-proc ;; path (defvar plink-file-path "C:/Programme/Putty/plink.exe" "Path to the program used by `run-plink'") ;; arguments (defvar plink-arguments '() "Commandline arguments to pass to `plink'") ;; prompt (defvar plink-prompt-regexp "^>\s" "Prompt for `run-plink'.") ;; Run-plink (defun run-plink () "Run an inferior

Can we save the execution log when we run a command using PuTTY/Plink

淺唱寂寞╮ 提交于 2019-12-01 14:47:03
I am using Plink to run a command on remote machine. In order to fully automate the process I need to save the execution log somewhere. I am using a bat file: C:\Ptty\plink.exe root@<IP> -pw <password> -m C:\Ptty\LaunchFile.txt The C:\Ptty\LaunchFile.txt contains my command that i want to run. ./Launch.sh jobName=<job name> restart.mode=false Is there a way to save the execution log so that I can monitor it later... ? Martin Prikryl The plink is a console application. Actually that's probably it's only purpose. As such, its output can be redirected to a file as with any other command-line

Script via Plink in .bat behaves differently

て烟熏妆下的殇ゞ 提交于 2019-12-01 13:34:13
I have a .bat file on my Windows machine. This .bat file uses plink.exe to connect to an Ubuntu machine and execute an .sh script. However, I get different behaviors on the script depending on how Plink is used: log onto Ubuntu directly (in person) -- script succeeds ssh via Bitvise client -- script succeeds ssh via Plink (by calling plink.exe ) and calling script from interactive shell (it's a Ubuntu shell within windows cmd.exe ) -- script succeeds ssh via .bat which then calls Plink -- script fails The script fails w/ message: error while loading shared libraries: libCint.so: cannot open

How to pass echo y to plink.exe for first connection

时光毁灭记忆、已成空白 提交于 2019-12-01 12:38:40
I would like to pass echo y to plink.exe, so that plink execute a command. How it can be achieved? os.system(' c:/netapp/python/plink.exe admin@192.168.1.1 -pw xxx uptime > c:/netapp/python/12.txt') The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 2048 9d:08:37:a8:d0:34:a3:d2:d8:e5:09:7e:63:08:a9:1b If you trust this host, enter "y" to add the key to Store key in cache? (y/n) Do not! Verifying host key fingerprint is an integral part of securing your connection. Blindly

Can we save the execution log when we run a command using PuTTY/Plink

拈花ヽ惹草 提交于 2019-12-01 12:09:24
问题 I am using Plink to run a command on remote machine. In order to fully automate the process I need to save the execution log somewhere. I am using a bat file: C:\Ptty\plink.exe root@<IP> -pw <password> -m C:\Ptty\LaunchFile.txt The C:\Ptty\LaunchFile.txt contains my command that i want to run. ./Launch.sh jobName=<job name> restart.mode=false Is there a way to save the execution log so that I can monitor it later... ? 回答1: The plink is a console application. Actually that's probably it's only