![]() ![]() If there is not a solution, I will continue using "wintail.exe" but it will be frustrating for me to have not a unix-equivalent command in powershell. ![]() I hope that I have been clear in the explanation of my problem. I desire a command which gives me the possibility to "stay in a listening state" on the log file and see every line changed in real-time (as I said many time before).įrom different forums, I see that the "-wait" parameter is used but, as I said many time before, it does not work as I want because the output is refreshed only if the "filename" file is saved.Īs I said many time before, in unix, using " tail -f filename" (a very simple command) it is possible to have what I want, that is a tail which is refreshed automatically (without my action) every time "filename" changes Update this is quite handy for a quick monitoring (thanks to Ckarras's answer ) Quick screen shot of PowerShell type -wait (type is an alias for get-content ) windows monitoring log-files realtime. Get-Content "filename" -tail 1 until my fingers become red. Basically, same functionality like tail -f logfile on Unix systems. If I would see every change in the "filename" file, I should type every second My batch: :: Set Path to BareTail.exe Location set pathpath 'D:Installs' :: Set Server Path & Folder Path set server10.10.10.20 set dirproductinstalllogs start baretail.exe serverdirsystem. If I type Get-Content "filename" -tail 1, I see the last modified line in the "filename". 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 dont know how to specify. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |