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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -