Plink passing arguments

view story

http://stackoverflow.com – plink [email protected] -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("Input str:%s \n",buf); return 0; } gcc test.c -o testpgm Question: How to pass command line arguments to this function? I tried plink [email protected] -t '/home/user/test/testpgm arg1' bash: (HowTos)