plink user@10.220.60.xx -t '/home/user/test/testpgm'
I'm able to run the below program which resides on a Linux machine from a windows machine using the above plink cmd.
#include<stdio.h>
int main(int argc,char *argv[])
{
int i;
char buf[30];
printf("Test Pgm \n");
printf("No of Arguments=%d\n",argc);
printf("Enter a string:");
fflush(stdout);
gets(buf);
printf("In
I have a program that can be run via remote plink ssh on a different PC using windows command prompt
plink [username]@[ip address] -pw [password] ./program
or:
plink -ssh -l [username] -pw [password] [ip address] ./program
but somehow the program will end prematurely. Program runs, but terminates before the program had run its course.
i've been trying to issue commands using plink to retrieve information from my external server. note that these plink commands are ran from a binary that expects no input from the user. is there a flag that will allow me to override this error message and continue with program output?
The server's host key is not cached in the registry.
Hi Plink users,
I am very new in GWAS and decided to use PLINK for this. But I am struggling with file formats.
I have one exome data with 200000 SNPs in it. But it is in .txt format. But all the necessary fields are there in different columns.
I wrote a test.c:
#include <unistd.h>
#include <stdio.h>
int main()
{
while(1)
{
sleep(1);
printf("====test====\r\n");
}
return 0;
}
then i compile it : gcc ./test.c -o ./test
and the i wrote a shell script:
#!/bin/sh
./test &
and then i made this script to be executed automatically on system boot.
then I login to the Linux system using secur
I am developing an application which had some dependency and for that i use external tools. One example is that i use putty's commandline tool plink.exe to telnet/ssh remote machine from java program.
Now when i switch to ubuntu, for that there is a utility sshpass that does the same for me.
I have made a script in bash which create a connection to a list of server.
After each connection, if it succeed, i execute a command.
Connections are under a loop.
For know i use Plink.
My script works, but it takes too much time when the server is unreachable.
I encountered another issue when i wanted to reach a server through a proxy.
I have two goals :
Configure the timeout of Plink in com
see i have below code
#include<stdio.h>
int main ( int argc, char *argv[] )
{
int i=0;
for(i=1;i<argc-1;i++)
printf(" %s \n",argv[i]);
return 0;
}
compiles and run as follows
gcc test.c
./a.out 1 * 2
and now its o/p is scarred..!
o/p is :
1
a.out
Desktop
Documents
Downloads
ipmsg.log
linux-fusion-3.2.6
Music
Pictures
Public
Te
Hi,all of you!I wrote some codes to test setvbuf function in linux.Here are the codes:#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
char buf[10];
int main()
{
if((setvbuf(stdout,buf,_IOFBF,10)) != 0) {
fprintf(stderr,"setvbuf() failed: %s\n",strerror(errno));
exit(1);
}
printf("123456789&qu