s****n 发帖数: 700 | 1 【 以下文字转载自 Programming 讨论区 】
发信人: sallen (looking for job), 信区: Programming
标 题: how can I get external program's result in C
发信站: BBS 未名空间站 (Sun Nov 1 21:09:59 2009, 美东)
the external program is excuted via ssh. Thank you very much |
E*V 发帖数: 17544 | 2 详细一点
【在 s****n 的大作中提到】 : 【 以下文字转载自 Programming 讨论区 】 : 发信人: sallen (looking for job), 信区: Programming : 标 题: how can I get external program's result in C : 发信站: BBS 未名空间站 (Sun Nov 1 21:09:59 2009, 美东) : the external program is excuted via ssh. Thank you very much
|
s****n 发帖数: 700 | 3 Thanks for your reply.
Say I write a C program at serv1 which excute " ssh serv2; ls", how can I
get the "serv2 ls" result in the c program.
【在 E*V 的大作中提到】 : 详细一点
|
E*V 发帖数: 17544 | 4 你给个文件,读文件不就得了
【在 s****n 的大作中提到】 : Thanks for your reply. : Say I write a C program at serv1 which excute " ssh serv2; ls", how can I : get the "serv2 ls" result in the c program.
|
s****n 发帖数: 700 | 5 the file will locate at serv2.
So Do I need copy the file to serv1 and read it? Is there an simple way to
do that?
【在 E*V 的大作中提到】 : 你给个文件,读文件不就得了
|
E*V 发帖数: 17544 | 6 接着你要干什么?
【在 s****n 的大作中提到】 : the file will locate at serv2. : So Do I need copy the file to serv1 and read it? Is there an simple way to : do that?
|
s****n 发帖数: 700 | 7 do some other things using the result from serv2.
【在 E*V 的大作中提到】 : 接着你要干什么?
|
c**t 发帖数: 2744 | 8 I would suggest you check out nsoftware IPWorksSSH.
【在 s****n 的大作中提到】 : 【 以下文字转载自 Programming 讨论区 】 : 发信人: sallen (looking for job), 信区: Programming : 标 题: how can I get external program's result in C : 发信站: BBS 未名空间站 (Sun Nov 1 21:09:59 2009, 美东) : the external program is excuted via ssh. Thank you very much
|
E*V 发帖数: 17544 | 9 那就拷回来吧
【在 s****n 的大作中提到】 : do some other things using the result from serv2.
|