Viewing updates of a dynamically generated log on a remote linux server from a windows machine - linux

I have connected my windows 7 machine via winscp sftp with a cubietruck that runs on debian jessie server.
I need to watch on windows the updated log of an installed app in the linux server.
With winscp I can see this log file. I set the winscp to refresh the remote panel every 10 seconds. I tried to open this log with the following editors:
1) Sublime text with autorefresh plugin
2) Notepad ++ with update silently set
3) Glogg
Unfortunately even though the remote panel was refreshed and watched the log file to grow in size, the file opened in the editors was not updated.
I also tried to set Keep Local Directory up To Date , which creates a replicate file in a local directory in windows. When I had this file opened with the above editors and the remote log file changed then a new file was created on the local disk, without succeeding in watching the updated log.
Does anyone know any solution to this issue or a working alternative ?

You can try klogg. It is a fork of glogg. Glogg opens files in such a way that may prevent other programs from accessing them, that is described here. That has been fixed in klogg(see the issue for details).

Related

kdevelop detect concurrent file opens

My favorite editor, geany, has an option "Disk check timeout", after this timeout it checks if someone else has overwritten the file that I'm editing. This is a simple tool to detect if two people work on the same file (we don't use a version control system). Is there an option or a plugin for kdevelop that does the same thing?
Edit: as Zhigalin said KDevelop does the check automatically but only for local files, I need it for files opened using sftp.
In KDevelop this check is always active, you will get a popup as soon as you focus on that file in the editor.
Edit: if you are speaking of remote files than the reply is no, there is no such functionality.
So you have 4 options:
File a proposal here (which probably won't get implemented soon because of few active developers)
Patches are always welcome
[suggested] Start using a version control system like Git, there are even tools to automatically deploy on server when you make commit on a specific branch.
Use AutoFS(FUSE) to mount your server as a local folder.

Open and edit code file from remote server in my preferred editor?

I am having a lot of trouble solving a SFTP problem...
I would like to be able to open and edit text files in my preferred editor such that I can execute a command on my remote server and it will open the file in Visual Studio Code. Once that file is opened in VS code, I would like to be able to edit it and, when I save, it will save the changes to the same location on the server.
I know something like this is possible because I have used WinSCP where I can double click a text file from the server through the UI and it will open it in whichever editor I choose. When I save changes, it will update those changes on the server. I really want to know what WinSCP is doing behind the scenes when I do that.
Any help would be appreciated. Thanks!
WinSCP is running on your local machine, so it can open a local editor. So, it's not comparable.
You cannot execute local a application from a remote server.

Automatic line space after download my server

My workstation is windows based, i work with sublime text and dreamweaver. I have strange problem when i download my script from my live server. The script changed! It has additional linespace on each row. For FTP Transfer (Upload and Download) i'm using filezilla. The script is on PHP language
Any idea why this happen ? is there some setting i miss ? How to solve this ?
Thanks for your feedback

OwnCloud Remove all files prompt

I have a owncloud server and the owncloud desktop client.What I want to do is to be able to delete things server wise and have it automatically delete from the pc. The problem is that the owncloud client displays a warning message of "Remove All Files"? with the choices of Remove all files or to keep files when the files are deleted from the server. Is there a way to not have the prompt come up and automatically remove all files?
In the version 2.2.3 (maybe earlier), you can change the configuration file to disable the prompt.
See the code where the prompt is invoked and the code showing the configuration file property.
If you edit (on Windows): c:\Users\myuser\AppData\Owncloud\owncloud.cfg and add the following, under the [General] section, you will no longer get the prompt.
promptDeleteAllFiles=false
The short answer: You cannot change this currently.
The long answer: The dialog was added as a safe-guard because there were cases where you could lose all your files unintentionally, e.g. if your admin re-created your account and left it empty. The client would assume the files had gone and would replicate this (it could not know better), so it would replicate the data removal locally. The code is still there today just to be safe.
If you are fearless, you can patch Folder::slotAboutToRemoveAllFiles(). Alternatively, you could open a bug report so we can solve this for everyone. What is your motivation to be able to do this without a prompt?
PS: The sources can be found on GitHub. URL and build instructions at http://doc.owncloud.org/desktop/1.5/building.html.
I have a script that processes the files that someone drops into ownCloud and it will then move them to the final storage place. However, this prompt stops the client from syncing until I manually log in to acknowledge it... I guess I will learn how to patch this.. Dropbox doesn't do this. Google Drive doesn't do this. But since I can't use cloud services (compliance issues), I have to use this solution until I can build a new secure upload means.

Configuring baretail to show logs over the network

I am looking for a log reader that updates in real time. Also, my log files are on a server running Linux, while I'm on a Windows system.
I found Bare Metal's BareTail, which I'm having difficulty configuring. I have written a simple batch to execute & open the log file but it is not able to, which is not very surprising, as the server needs a username/password which I don't know how to specify. My batch:
:: Set Path to BareTail.exe Location
set path=path;"D:\Installs"
:: Set Server Path & Folder Path
set server=10.10.10.20
set dir=\product\install\logs\
start baretail.exe \\%server%%dir%system.log
Any ideas on how to resolve this?
On the Linux machine, create an SMB share that points to the logs directory.
In Windows Explorer, map the SMB share to a drive letter. In your case, mapping opens the login dialog for the server. Then simply drag the log file into baretail.

Resources