The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Summary: Use the built-in features of PowerShell to obtain data produced by a Linux application.
(image) Can I run a Linux application like ls and capture its output in PowerShell?
(image) You certainly can! It’s no different from when you normally grab output from any other command in Windows. To grab the output of the ls command, ...
Summary: Install and Configure SSH for Open Source PowerShell remoting.
(image) With PowerShell, up to this point, one thing that I love is the ability to connect various systems in my environment and run cmdlets on them remotely. Can we do this with Open Source PowerShell?
(image) Honorary Scripting Guy, Sean Kearney, is here today to ...
Summary: Pass a result code back to a calling Linux environment from Open Source PowerShell.
(image) How can I pass a numeric value back to a calling Bash Shell to indicate an error?
(image) Just simply supply the EXIT command and a numeric value at the point where the error is flagged. For example, the following code is a PowerShell script...
Summary: Pass and return data correctly between Bash and Open Source PowerShell.
(image) Could you show me some examples of actually passing and returning values between PowerShell and Bash?
(image) Honorary Scripting Guy, Sean Kearney, is here today and we’ll do exactly that. It isn’t difficult to actually to do this either, but there...
Summary: Identify the results of a script running in Open Source PowerShell in a Bash environment.
(image) Is there any way to see the results of a PowerShell script? For example, if somebody sent an “Exit 42”, could I see it in Linux?
(image) All you need to do is examine the $? variable in Linux, just like any other Linux application...