Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

A "tail -f" equivalent command in Powershell to show real time logging

$
0
0

Hello,

Using the powershell command:
Get-Content "Filename" -Wait -Tail 10
in order to show as output Real-Time contents of a file in powershell, it doesn't work.

As example I would like to show Real-Time contents of a systemout.log file in a IBM Websphere Environment.

Using the above command, the shell remain in "listening mode" but nothing happens even if the Systemout.log file changes.

In a unix environment it is enough to type "tail -f filename" and everything work correctly.

Is it possible to use a "tail -f" equivalent command in Powershell to show real time logging?

Thank You in advance.

 

Fausto.


Viewing all articles
Browse latest Browse all 6937

Trending Articles