putty

problem executing plink(putty) command

浪子不回头ぞ 提交于 2019-12-14 02:22:40
问题 I am using Plink to execute remote command: When using this from cmd prompt in single line it doesnot work: C:\>c:\plink.exe -l userId -pw psw -m C:\goto\test.bat remote_host It says unable to open command file "C:\goto\test.bat" But The following works: C:\>c:\plink.exe -l userId -pw psw remote_host C:\>C:\goto\test.bat Please help. 回答1: Try running it like this: c:\plink.exe -l userId -pw psw remote_host C:\goto\test.bat 回答2: Judging by some documentation, this should work: C:\>c:\plink.exe

Putty Dynamic Title (with $PWD)

风格不统一 提交于 2019-12-14 00:58:09
问题 I would like putty terminal to display the current folder. Is this possible ? For example, when i'm in $HOME , the putty window title would be $HOME . Then, if I do cd $HOME/foodir , the title would change to $HOME/foodir . Is that possible ? Thanks 回答1: Setting PS1 did not work for me (putty 0.62). I'm using bash, and here's what works : PROMPT_COMMAND='printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"' 回答2: Putty window is like a terminal on Linux, so it´s

How to integrate PuTTY into Sublime Text 2

╄→гoц情女王★ 提交于 2019-12-13 21:05:01
问题 As I learn more about ST2 and use it more, I really like the power and comprehensive capability of running all of my IDE editing activities through the ST2 tool. I have read and know that it is possible to integrate and emulate a terminal session on a server directly in ST2. I have PuTTY installed locally on my WinXP machine. Does anyone have simple step-by-step setup snippet on how to get PuTTY configured in ST2 so you can telnet directly into a server through the ST2 interface? Thanks. 回答1:

Avoid opening browser on remote server during selenium call

荒凉一梦 提交于 2019-12-13 14:53:50
问题 I have written a selenium application using webdriver. I wish to run it on a remote server. When I do that by logging into the server via putty (along with Xming), the selenium tries opening the browser on the server only and load the pages through the external display. However in doing that, it takes a lot of time than if I would have been able to get the browser open on my localhost only (and not the server). Is it possible for such thing to happen or opening on the server only is the only

Automate MySQLdump to local computer (Windows)

↘锁芯ラ 提交于 2019-12-13 11:35:06
问题 I'd like to automate a mysqldump to my computer from a remote host, and I cannot figure out how to do it. I suppose that I should run a mysqldump through an SSH tunnel, but this becomes complicated by the fact that my local computer is a Windows XP machine. I'm using putty to open a tunnel like so: putty -load "[my saved session]" -L [localport]:localhost:3306 -N Note: I can't just connect to the mysql server remotely. 回答1: Instead of PuTTY, download the command line version plink.exe . Then

Login syntax for plink using ip, username, and password

心已入冬 提交于 2019-12-13 09:47:26
问题 I'm trying to connect to a VM through the command line using plink with this syntax: plink -v "123.123.12.100 -l user -pw pass" But I keep getting this Looking up host "123.123.12.100-luser-pwpass" Unable to open connection: Host does not exist When I just run plink with the ip address, I am able to login with my credentials. I've looked around and the common solution is to check to see if PuTTY has default settings because then plink will use those, but there are no default settings, so it

My codes work well In Dev c++ IDE, but in linux terminal, it doesn't. (especially in the part of 'while' loop.) [closed]

只谈情不闲聊 提交于 2019-12-13 09:23:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . while(true) { getline(myfile, a[i]); if (a[i]=="")//or if(a[i].empty()) break; i++; n = i; } In this while loop, when getline function gets a blank line from myfile object (there is a blank line between a series of binary numbers). Example: 101010 000 11 1 00 <- when getline meets this line, by "if" break; has

Windows PuTTY - git error - No supported authentication methods

心已入冬 提交于 2019-12-13 08:23:09
问题 I don't have this problem when I use git locally on my machine, ONLY when logged in via SSH with PuTTY. FYI my server is using freeSSHd. Assuming my current directory is my git repository's local directory... The command git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin issues the following error: FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey) Again, this only happens when I'm logged in via PuTTY and not when I'm in the

How to get putty terminal to show the whole output of a command?

你说的曾经没有我的故事 提交于 2019-12-13 02:15:03
问题 I have got a CISCO 1900 series router. When I type a command that will give me a long output it stops showing it when the "press enter to show more" line should be written. The problem is not with the router itself, because on hyperterminal it is working as it should, but with the putty. I cannot find any options in the settings to enable longer outputs. Can anyone help me in this? 回答1: When I run command and expect alot of output I will ussualy pipe it to the less program (some people use

AT+CUSD Not Working on modem Huawei e3131a

删除回忆录丶 提交于 2019-12-12 21:39:39
问题 I am trying to send at commands to get balance on huawei e3131a modem but i always receive "Ok" as answer no matter the configuration i use (GSM, IRA, UCS2). I also tried to change the operator code ( #123# ) to many formats like Hex PDU Simple String but no way to get the balance. Here is the command i sent : AT+CUSD=1,"#123#",15 . Thanks in advance for the help. NB: I am using Putty to send commands. 回答1: I finally found the method to send USSD At commands. Some 3G Modem doesn't support