由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - how to read log files on a remote server with ssh?
相关主题
怎样读一个不断更新的文件讨论个idea题
How to generate .dll files from a .c file using VC6.0?有了google是不是大家能力都一样了?当然不是
How to read binary(data) file generated by Fortran in C/C++ (转载)feof always return true
what's .gch file? (g++)请教C++
Solution suggestions? (转载)docker开发环境怎么玩
mysql 在两台电脑中倒数据? (转载)朋友面试银行的经历。
a simple question about constructor谁能推荐个web portal的software
where is my downloaded file ?有什么东西用来做机器间的数据转移的?
相关话题的讨论汇总
话题: ssh话题: log话题: remote话题: tail话题: files
进入Programming版参与讨论
1 (共1页)
B********e
发帖数: 1062
1
is there any effective way of doing this?
the log file is not big around 10mb. and it will be generated and added
throughout the day. i want to tail the log every five seconds. there is no
http option. only ssh sftp is available.
g*****g
发帖数: 34805
2
If java, use jsch, similar options may be available for other language.

【在 B********e 的大作中提到】
: is there any effective way of doing this?
: the log file is not big around 10mb. and it will be generated and added
: throughout the day. i want to tail the log every five seconds. there is no
: http option. only ssh sftp is available.

B********e
发帖数: 1062
3
Thanks.

【在 g*****g 的大作中提到】
: If java, use jsch, similar options may be available for other language.
w******p
发帖数: 166
4
if you just want to tail from time to time:
$ ssh remote_host "tail /path/to/file"
or you want to monitor it as it grows:
$ ssh -tC remote_host "tail -f /path/to/file"
1 (共1页)
进入Programming版参与讨论
相关主题
有什么东西用来做机器间的数据转移的?Solution suggestions? (转载)
怎么设计这个clientmysql 在两台电脑中倒数据? (转载)
FileZilla versus sftpa simple question about constructor
How to compile multiple c files into one obj file?where is my downloaded file ?
怎样读一个不断更新的文件讨论个idea题
How to generate .dll files from a .c file using VC6.0?有了google是不是大家能力都一样了?当然不是
How to read binary(data) file generated by Fortran in C/C++ (转载)feof always return true
what's .gch file? (g++)请教C++
相关话题的讨论汇总
话题: ssh话题: log话题: remote话题: tail话题: files