由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - how can I get external program's result in C
相关主题
network if-up if-down问题在ubuntu下怎么格式化external hard drive
Shuttleworth Says Ubuntu Can't Just Be Windowspython c/c++ question.
Linus says...EXT4 external hard drive failed to be seen in Win7 Host...
unplug the network cable, ifconfig still says uphow to do this iptables setup?
C++ 诡异的编译问题。请教。请问如何批处理跑一个external程序
Ubuntu下面怎么把USB external hard drive power off?python regexp question (转载)
c程序用g++编译需要改动么?hyper-v的网络怎么设呀? (转载)
GATES和LINUS哪个更伟大?怎么看网络电视啊?
相关话题的讨论汇总
话题: program话题: external话题: result话题: serv2话题: get
进入Linux版参与讨论
1 (共1页)
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.
1 (共1页)
进入Linux版参与讨论
相关主题
怎么看网络电视啊?C++ 诡异的编译问题。请教。
这个可能是什么问题Ubuntu下面怎么把USB external hard drive power off?
mail questionc程序用g++编译需要改动么?
want use raid on Debian, need some suggestionGATES和LINUS哪个更伟大?
network if-up if-down问题在ubuntu下怎么格式化external hard drive
Shuttleworth Says Ubuntu Can't Just Be Windowspython c/c++ question.
Linus says...EXT4 external hard drive failed to be seen in Win7 Host...
unplug the network cable, ifconfig still says uphow to do this iptables setup?
相关话题的讨论汇总
话题: program话题: external话题: result话题: serv2话题: get