Topic "File sync to "tail -f" error logs"

Author Message
MostHost LA
[View user's profile]

Joined: 2011-05-19
Posts: 1
Location: Los Angeles
Hi all,

I'm curious what process you would see best fit to essentially get a built in WINSCP editor window to auto update either periodically - or on server side file change if possible.

I'm trying to achieve the same result as for example "tail -f /var/log/maillog" but within the built in editor so as to be able to search and use other functions.

Just curious on what the "path of least resistance" would be.

I have no problems diving into the source and actually adding a UI function to the editor window for this btw. But I don't think that the client knows when things change server side so I'm guessing it would have to be on a timer base? I want to determine that, and generate a non intrusive script - before delving into the code...
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
WinSCP does not support this.
Nor there is a way for WinSCP to be notified on a change to a remote file.
So it has to be on timer.
There's already "reload" function available (TEditorForm::Reload()).
You just have to trigger it periodically.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License