Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Get-content -wait not updating?

Reply
 
Old 11-26-2008   #1 (permalink)


Vista Home Premium x64
 
 

Get-content -wait not updating?

Hi, Im trying to get tail on catalina.out through PS by using get-content as a tail.

So I use: "get-content -wait catalina.out" and watch it read all the way through the file. When its done it starts to wait but when the log gets updated nothing happends in the PowerShell. So... any suggestions? Anything to do about it or is there a cmdlet that works better?

My System SpecsSystem Spec
Old 11-26-2008   #2 (permalink)
Long


 
 

Re: Get-content -wait not updating?

you can try this:
http://www.codeplex.com/PsObject/Thr...?ThreadId=7637

"PeoB" <guest@xxxxxx-email.com> дÈëÏûÏ¢
news:bf0ac4996c3001256129f2ac7ad87720@xxxxxx-gateway.com...
Quote:

>
> Hi, Im trying to get tail on catalina.out through PS by using
> get-content as a tail.
>
> So I use: "get-content -wait catalina.out" and watch it read all the
> way through the file. When its done it starts to wait but when the log
> gets updated nothing happends in the PowerShell. So... any suggestions?
> Anything to do about it or is there a cmdlet that works better?
>
>
> --
> PeoB
My System SpecsSystem Spec
Old 11-26-2008   #3 (permalink)


Vista Home Premium x64
 
 

Re: Get-content -wait not updating?

Quote  Quote: Originally Posted by Long View Post
Thanks that will do the trick
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
hot to redirect get-content -wait to a new window PowerShell
Different behavior of "Get-Content -Wait" on Windows Server 2008 PowerShell
Set-Content not updating file after get-content and forEach-Object PowerShell
Issue: getting/setting variable content using Get/Set-Content PowerShell
Weirdness with get-content | replace | set-content - file content is deleted!! PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46