<Surf & Perf/>

  • About
  • Archive
  • Contact
  • 🔎

[PowerShell] Monitor active log files in Windows using type -wait command

Oh this is super handy. Say you have an active log file you want to monitor in real-time, simply run this command in Windows Powershell and see your logs update live on the terminal.

To demonstrate, in the screenshot above, I simply created a script that logs the current timestamp every two seconds on a logfile located at the Desktop. Then I used Powershell to monitor the updates on the terminal.

To do so, simply open Windows PowerShell on your machine and run the following command:

type -wait "logfile.txt"

🙂

October 30, 2019
Powershell, Windows
Uncategorized
←Previous: [UiPath] How to setup config file and read variables
Next: [SQL Server] How to export table data as insert statements→

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Other topics

Active Directory Ajax Truclient Automation Blogger CSS Eggplant Functional Error How to HTML IE IIS Web Server Javascript Macro PHP PHP 7 Powershell QTP Regex RPA Server Management SQL SQL Server Tutorial UFT UIPath VB VB.net VBA VB Script Video Visual Basic Vugen Vugen 11.52 Web Design Windows Windows Server

Search

(c) 2023