1 Reply Latest reply on Feb 3, 2016 1:48 PM by Bill Robinson

    Real Time stdout to BLPackage Deploy Job

      I'm using BladeLogic to run a custom PowerShell script to interact with a SQL Database to track the progress of an ETL. Powershell Script works great and provides progress update to Standard Out. ETL job can take 72 hours.


      When running the job via  BLPackage Deploy Job. I dont see the stdout displaying under the Log Message for Commit. Only once the job has completed Job Logs display the stdout.


      Question:  How can I run a PowerShell script from BladeLogic and have near real time stdout display in the job log?


      PowerShell Script:

      function BSATest ($param1)
          $i = $null
          While ($param1 -ne $i)
              if ($i -eq $null) { Write-Output "Starting Job" }
              Write-Output "Count: $($i)"
              Start-Sleep "$($param1)" 
             if ($i -eq $param1) { Write-Output "Job Finished" }    
      BSATest $param

      BLPackage Execution Command:

      C:\Windows\System32\cmd.exe /C C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe –NoProfile -ExecutionPolicy Bypass -File "C:\Temp\BSATest.ps1" -param ??Number??