plink user@10.220.60.xx -t '/home/user/test/testpgm'
我能使用上述plink命令从Windows机器运行以下程序,该程序位于Linux机器上。请注意,保留了HTML标签。
我可以通过上述plink命令从Windows机器运行以下程序,该程序位于Linux机器上。
#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
问题:如何将命令行参数传递给这个函数? 我尝试过
plink user@10.220.60.xx -t '/home/user/test/testpgm arg1'
bash: /home/user/test/testpgm arg1: No such file or directory