开发者

Redirect PuTTY Streams

Is it possible to redirect the PuTTY streams so I can send the 2 streams ( input and output ) to my own program for processing ? The logging option logs all input and output. I would like it separated and sent on the fly to my program. If this is not possible I will have to delve into the source and grab the IO just after it is开发者_如何学JAVA entered into the program and just before it is received.


I think you dont need to differentiate between "Putty streams" and "shell streams".

To get both error and stdout into one file :-
ls >> file 2>&1

to separate :-
ls 2>>stderr_file 1>>stdout_file

stdin, stdout, and stderr are 0, 1, and 2, respectively

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜