133 questions

1

100

Views

### plink find string in remote .xml file via .bat

I am experiencing a strange issue with SSH, plink, find command and .bat execution. I want to check a setup.txt file on all my remote machines via putty/plink for a specific string. (around 50-400 putty SSH sessions, depending on my environment) @ECHO off SETLOCAL EnableDelayedExpansion (...) SET se...
dEEkAy

0

35

Views

### Convert plink .ped separate nucleotides format to slash genotypes format using sed

I am trying to use LDheatmap library in R. The matrix of genotypes required must be in the format A/T T/C G/G etc ... to be imported as a dataframe. Starting from a .ped plink file, I used SED for the text transformation. I needed to replace one every other white space with a / (forward slash). This...
Gogol

0

65

Views

### Cannot get cmd command result from C# code

I am using a switch and I want to connect it via ssh or telnet and send commands to specific ports. I succeeded connecting to the switch but I am not able to execute commands after login. string command = 'reboot'; using (Process process = new Process()) { process.StartInfo.FileName = 'plink.exe';...
snvngrc

1

124

Views

### Plink error “Stopping as there are no SNPs left for analysis”

This is the first time I'm going to use Plink. I have downloaded the plink.exe and set path as given in webpages to use plink. And typed plink, which must give the summary of using Plink. But it is showing the error as Error: Stopping as there are no SNPs left for analysis What may be the issue?

0

88

Views

### Sending commands to the Linux Terminal from a Java program

I am currently working on a project where I need to send gcode text files to a TinyG controller using a Raspberry Pi. I can successfully do so from the Terminal on the Pi, but I would like to make a graphical user interface for my coworkers who don't know how to use the Terminal. I am using a comman...
R0T0

0

65

Views

Because Idea threw away its bundled SVN client in recent version I have to configure SVN manually. After few hours of investigation I got it working: TortoisePlink 64bit, pageant from putty 64bit SVN_SSH=c:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe -i svn-key-private.openssl I realized tha...
Leos Literak

1

43

Views

### Unexpected char when executing .ps1 file using PuTTY Plink

I'm executing remotely some scripts to get information from a server, using Plink tool from putty. The trouble comes when I use a .ps1 file, because one '?' appears on the beginning, making the first line incorrect, but with .bat files works as desired. For example, I want to print the content of a...
Didac Plaza

1

54

Views

### Executing (sudo) subcommands using Plink

I am trying to command Linux machine from Window PowerShell. The commands are dependent on the fail/pass of the commands before. Therefore, I have to put all the commands together. I have tried multiple ways of putting commands together but at the ends I only receive the output of the first command....
Sam Shurp

0

21

Views

Ilya Chorny

1

50

Views

### Where does Plink command look out for the private keys?

I am trying to connect a Linux machine from Windows using passwordless SSH connection. I generated the keys using PuTTYgen in the Windows machine and copied the keys to the Linux machine appropriately. From the command prompt of windows I could access passwordless using the below command: ssh [email protected]
auro

3

4.7k

Views

### How to respond yes to plink's cache key question in c#

I'm using plink from c# to connect to Linux servers and run some programs. Both the c# console program and the plink.exe are on the same windows machine. The problem is when I connect to a Linux server for the first time, plink asks me if I want to accept and store the SSH key from the Linux server...
danze

1

1.4k

Views

### Passing arguments to a shell script from C# process

I am stuck with a problem from many days. I am connecting to a linux box and want to run some scripts and collect back the file generated. Steps are 1) connect 2) run some scripts (which are interactive and need inputs at some point) 3) get the file generated as a result. 1) I am connecting to linux...
Akash

1

656

Views

### Not able to run psservice.exe and plink.exe from servlet deployed in Tomcat 6.0 using runtime exec and processbuilder

I am trying to run psservice.exe and plink.exe from servlet using runtime exec. It will be used for starting or stopping services on remote computer running windows and unix aix. I have set system variables so that i am able to run them from command prompt. These commands are running perfectly from...
Piyush_Chandra

3

4k

Views

I would like to encrypt a password in PowerShell I tried this : In CLI : Read-Host -prompt 'Password ?' -AsSecureString | ConvertFrom-SecureString | out-file 'D:\root.pwd' In my script.ps1 : $pwsNAS = Get-Content 'D:\root.pwd' | ConvertTo-SecureString plink.exe [email protected] -pw$pwdNAS df But it...
jgoup

1

422

Views

### Process not redirecting complete output; not showing full response from SSH Server

I'm starting up a process and making use of plink to create a reverse tunnel to an ssh that's in my local network. I can connect fine to the server, but its not displaying the full content on the console window, my goal is to wait for everything to display and then proceed by inputting the password...
Dayan

1

502

Views

### Emacs, Windows, Tramp, Plink still doesn't work

When I type Ctrl-X F /ssh:/, I get the following error message: plink -l -ssh ssh && exit || exit Unable to open connection: Host does not exist It seems like the hostname is lost and it tries to connect to a host named ssh. How do I fix this?
marczellm

1

72

Views

### Slow conversion of binary data

I have a binary file with a particular format, described here for those that are interested. The format isn't the import thing. I can read and convert this data into the form that I want but the problem is these binary files tend to have a lot of information in them. If I am just returning the bytes...
Davy Kavanagh

2

1.2k

Views

### geninfo searches .da instead of .gcda

When I try to execute the following lcov command through Plink (I give Plink a text file as an argument containing the following command) lcov --capture --directory . --output-file coverage.info it results with GNU gcov version 1.5 Capturing coverage data from . Scanning . for .da files ... gcov [-b...
ronstudy1

1

443

Views

### plink.exe : Getting non valid character in output

I am using plink.exe to execute commands on remote server. I am able to connect with remote server but when I execute a command to server, it returns with invalid characters output like: [?7l[H[2J[?25l[1;1H[37m[40m[2;1H[3;1H[4;1H[5;1H[6;1H[7;1H[8;1H[9;1H[10;1H[11;1H [12;1H[13;1H[14;1H[15;1H[16;1H[17...
Waqas Habib

1

531

Views

### Running Unix scripts remotely from Windows terminal and passing back prompts

I'm using plink to run a script on a remote server (Linux) from a Windows machine. Part of the script prompts for inputs (authentication to various other remote servers that use different credentials). I don't want to store the password in the script as each use will be using their own for auditing...
Koffee

1

406

Views

### process output is much slower than with cmd

I need to run PLink as a process as part of WinForm application this is my code public void RunProcess(string FileName, string Arguments, bool EventWhenExit , bool IsWaitBeforeStart = true ) { process = new Process(); process.OutputDataReceived += new DataReceivedEventHandler(OnDataReceivedEvent);...
LordTitiKaka

1

172

Views

### process not outputting it's last row C#

I'm trying To run Plink via C# using this code public void RunProcess(string FileName, string Arguments, bool EventWhenExit , bool IsWaitBeforeStart = true) { process = new Process(); process.OutputDataReceived += new DataReceivedEventHandler(OnDataReceivedEvent); process.StartInfo.RedirectStandar...
LordTitiKaka

2

39

Views

Ryan Hillhouse

1

973

Views

### Windows batch scripting: SSH with Plink showing strange sequences in output

I am scripting some command line operations for collecting and parsing specific network metrics from a Palo Alto 5060 firewall. I am using Plink and Windows batch scripting. @echo off 'C:\path\to\plink.exe' -ssh [email protected] -pw password < 'C:\path\to\commands.txt >> 'C:\path\to\output.txt' The cont...
khop

1

589

Views

### How can I answer a command that needs input in Plink?

I run a command in Linux remote machine using plink (from batch file in Windows). For example: plink.exe -ssh [email protected] -pw pass -m testCommands.txt >> uninstall.log In testCommands.txt I have a command that perform uninstall of application, the problem is that command of 'uninstall' require an answe...
Lidor Aviman

2

1.3k

Views

### Script via Plink in .bat behaves differently

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...
Joe Pak

1

257

Views

### Python input() unresponsive after plink

On Windows, I'm running the following Python 3.5 script from cmd.exe: subprocess.run(['C:\\Program Files (x86)\\Putty\\plink.exe', '[email protected]', '-P', '54022', '-i', 'key.ppk', 'exit']) input('Press Enter...') But when it's time to press Enter, the console is unresponsive. Enter does nothing....
Bart van Heukelom

1

822

Views

### Using Plink to execute command within another command/shell

My question is regarding the way the file ('-m' switch) is used by Plink. My command is: plink.exe -ssh [email protected] -pw [email protected] -m commandfile.txt I'm trying to connect to a switch and execute these 3 commands: system-view user-interface vty 0 screen-length 200 The issue here, is that each com...
Sam Doxy

1

907

Views

### Extracting individuals with Plink. Error: Line 1 of --keep file has fewer tokens than expected

I have files with the 2504 individuals of the 1000 genomes project, and I want to filter by population. I did the following for the first population (ACB): plink --file all1000gen --keep indACB.txt --make-bed --out all1000genACB but it gives back the following error: Error: Line 1 of --keep file ha...
msimmer92

1

95

Views

### Set negotiation mode on Plink

I am trying open a TelNet Connection using PLink My connection string is: plink.exe -telnet -P Although the connection is opened due to the firewall on the other side I can't login without changing the negotiation mode to passive Here is how it's changed using Putty I was an unable to find a docum...
nick zoum

1

377

Views

### Waiting for key press after Plink finishes executing remote command

I am using Plink to execute commands on remote computer. For example: plink.exe -l login -pw password net stop spooler Is it possible to do that after executing this command, Plink window will wait for my reaction (for example pressing button on keyboard)?
fafal

1

280

Views

### How to kill plink.exe when there's no output from stdout? [duplicate]

This question already has an answer here: Using module 'subprocess' with timeout 29 answers Plink.exe does not close when the process is finished. The code got stuck when trying to break the while loop by checking if output == ' ': break, but still no luck. I'm able to print the live output, but un...
Galaxy Power

1

634

Views

### Redirecting an output of command executed using Plink on double-hop SSH session

From my Windows system, I'm connecting via SSH to a remote system [remote1], and then connecting to another remote system [remote2] which remote1 has connectivity to, but my Windows system doesn't. Here's an example that is working; plink -ssh -pw password -batch [email protected] ssh remote2 'sed -i 's...
bunduru

1

45

Views

### Issue in executing command containing single quote using Plink

I am using plink.exe from cmd in Windows 10, to ssh to Ubuntu 16.04. In there, I am running MATLAB, to run the following command: try, someFunction('path/to/files', 'algorithm'), exit(); catch ME, warning(ME.message), exit(); end For this, I generate the following command to handle ssh, executing ma...
tafteh

1

148

Views

### Run autosys batch job and check its status in java

I have a requirement to run an autosys batch job and then check for its status till its status changes to SU. I have written the following code, but it gives me the following exception: CreateProcess error=2, The system cannot find the file specified Code: try { String[] cmds = { 'C:\\Folder_Path\\...
Abhisek

1

0

Views

### How to list loaded SSH keys in Windows (pageant)

I'm trying to create simple Windows batch script that will manage connectivity to our client. That includes some tunnels using plink.exe and socks chain. Each hop requires ssh key authentication for which I'm using pageant.exe. I have each piece scripted out as needed, except the pageant part, where...
Ricky-Brno

3

0

Views

### SSH Scripting for HP Nonstop Guardian with SAFEGUARD

we have some perl scripts to do things on guardian os on a hp nonstop machine with telnet. Now we have to shut down telnet and have to use the ssh (comforte) connection with a safeguarduser. We try to connect with the following perl code and anything seems to work but the shell does not keep open. u...
Ezak

2

0

Views

plink 12.34.567.89 -ssh -pw -l svn update ~/public_html The ip addresss above is hidden/modified When I execute this, it asks: 'login as: _' But I already supplied my login credentials in the plink command. I know my credentials are correct, I tested them with putty Thanks, Jonah
Jonah

1

0

Views

### plink process doesn't end if calling user isn't logged in

I'm calling plink from C# code which is running as a certain Windows user. I call plink like plink.exe [email protected] -pw password commands Usually the plink process ends immediately after the commands have been run, but when the user which the code runs under is not logged into Windows, the plink pr...
David