Giter VIP home page Giter VIP logo

poshrsjob's Introduction

PoshRSJob 1.7.5.2

Build status Join the chat at https://gitter.im/proxb/PoshRSJob

Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console.

Be sure to check out and contribute to the Wiki!

Download and install PoshRSJob from the PowerShellGallery using PowerShell:

Install-Module -Name PoshRSJob

Download the latest release (1.7.5.2)

PoshRSJob.zip

More information and examples here: http://learn-powershell.net/2015/04/19/latest-updates-to-poshrsjob/

Older post with some legacy examples found here: http://learn-powershell.net/2015/03/31/introducing-poshrsjob-as-an-alternative-to-powershell-jobs/

Now working on Linux/MacOS with PowerShell Core!

alt tag

Examples

=================

$Test = 'test'
$Something = 1..10
1..5|start-rsjob -Name {$_} -ScriptBlock {
        [pscustomobject]@{
            Result=($_*2)
            Test=$Using:Test
            Something=$Using:Something
        }
}            
Get-RSjob | Receive-RSJob

alt tag

This shows the streaming aspect with Wait-RSJob

1..10|Start-RSJob {
    if (1 -BAND $_){
        "First ($_)"
    }Else{
        Start-sleep -seconds 2
        "Last ($_)"
    }
}|Wait-RSJob|Receive-RSJob|ForEach{"I am $($_)"}

alt tag

Nano Support for PoshRSJob

alt tag

poshrsjob's People

Contributors

ashnal avatar awahlqvist avatar beargle avatar bielawb avatar codykonior avatar copdips avatar gitter-badger avatar jacobstruiksma avatar jaywryan avatar kborowinski avatar ktaranov avatar martin9700 avatar mvkozlov avatar oldlost avatar plork avatar proxb avatar ramblingcookiemonster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

poshrsjob's Issues

Verbose stream output does not work since 1.7.5.1

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Verbose stream output does not work since commit eeb86af

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Import-Module -Name PoshRSJob -Version 1.7.5.2
Start-RSJob -ScriptBlock {$VerbosePreference = 'Continue'; Write-Verbose 'VerboseOutput'} | Receive-RSJob

What is the expected behavior?

Import-Module -Name PoshRSJob -Version 1.7.4.4
Start-RSJob -ScriptBlock {$VerbosePreference = 'Continue'; Write-Verbose 'VerboseOutput'} | Receive-RSJob
VERBOSE: VerboseOutput

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.