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" |