powershell - Where does Start-Job output go? -
w:> $job = start-job { write-output "hi there"; throw "an error!" } | wait-job w:> $job | select * state : failed hasmoredata : true statusmessage : location : localhost command : write-output "hi there"; throw "an error!" jobstateinfo : failed finished : system.threading.manualresetevent instanceid : 882957a9-a5e0-4876-bd22-0dbd87512f10 id : 7 name : job7 childjobs : {job8} psbegintime : 3/24/2013 5:52:41 pm psendtime : 3/24/2013 5:52:47 pm psjobtypename : backgroundjob output : {} error : {} progress : {} verbose : {} debug : {} warning : {}
where did output go? how see standard out/error streams?
jobs running in background, don't write console. have run receive-job
after job completes collect output.
Comments
Post a Comment