[progress Communities] [progress Openedge Abl] Forum Post: Re: Ensuring A Quiet Point Is...

  • Thread starter Thread starter kirchner
  • Start date Start date
Status
Not open for further replies.
K

kirchner

Guest
The PowerShell equivalent of the article marshall pointed out, I think, is something like this: $DBNAME='teste' $LOOPTIME=10 while ($true) { $q1 = (Select-String -Pattern "\(5583\)" -Path "$DBNAME.lg" | Measure-Object).Count; $q2 = (Select-String -Pattern "\(5584\)" -Path "$DBNAME.lg" | Measure-Object).Count; if ($q1 -eq $q2) { "DB does NOT have a quiet point"; } elseif ($q1 -gt $q2) { "quiet point HAS been enabled on the DB"; } else { "DB.log's been shrunk or modified"; } Start-Sleep -Seconds $LOOPTIME; } Libor's suggestion might be easier but I just tend to avoid batch programming in new development.

Continue reading...
 
Status
Not open for further replies.
Back
Top