Tuesday 24 December 2019

Powershell background tasks

how do I do a background task in Powershell?


$ ant >/dev/null &        #cygwin

The closest I can get to this in Powershell is


ps2> start-job {ant |out-null; `a}   #powershell

but then I don't get output in real-time, nor do I get the beep. I have to poll for it with receive-job and get the beep when stdout gets polled.

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...