Linked Questions
11 questions linked to/from Redirection of standard and error output appending to the same log file
1 vote
0 answers
188 views
How can I print the output of Rust's cargo to a text file? [duplicate]
I have the following problem: I compile and run Rust program whose code I don't know too well using cargo run. It compiles fine, but somewhere in the code is a print/logging statement that prints way ...
177 votes
14 answers
346k views
Capturing standard out and error with Start-Process
Is there a bug in PowerShell's Start-Process command when accessing the StandardError and StandardOutput properties? If I run the following I get no output: $process = Start-Process -FilePath ping -...
45 votes
2 answers
52k views
Is there a way to log the output of npm install command
I ran npm install on a project and it gives a number of errors and warnings that I want to catch, but the output is too long and being cut off so I can't view the full list in the terminal. I tried ...
9 votes
2 answers
12k views
PowerShell Capture Git Output
Problem I am running some git commands through PowerShell but I am having issues capturing the output. Many of the ways I have looked into have failed to capture any output at all until I tried ...
1 vote
2 answers
3k views
Powershell Job Memory Consumption Issue
I've been struggling with this for a week now and have exhausted all the methods and options I have found online. I am hoping someone here will be able to help me out with this. I am using ...
5 votes
1 answer
12k views
PowerShell Start-Process -redirectStandardOutput throws: The system cannot find the file specified
In a PowerShell window I am executing: Start-Process XXXXX.exe -ArgumentList "some valid arguments" -wait -redirectStandardOutput "D:\\test1.txt" And getting: Start-Process : ...
1 vote
2 answers
5k views
PowerShell save stdout and display stdout
I'm using PowerShell to launch an app called GoodSync to perform a backup for me. At the end of the process, I have it email me the results. I also like to (sometimes) watch the PowerShell window to ...
1 vote
1 answer
2k views
Powershell executing python: redirect print statements only?
Is there a way in Powershell to redirect the print statements from python one place and the return statements to another place? For instance i'm trying $ python myPythonScript.py args >> ...
1 vote
1 answer
1k views
Running a process using New-Object hides it
I have a need to grab the stdout from an external program and bring it back into Powershell. I found and am using the answer provided by @Andy Arismendi from this question ( Redirection of standard ...
1 vote
1 answer
812 views
Vagrant: Run a script that is visible on a windows guest
I am provisioning a guest windows machine (both win7 and 10) with Vagrant and I want to start a process on the guest (the selenium server jar) that is visible to the guest. In other words, when the ...
1 vote
0 answers
341 views
Run PowerShell script without ps1 extension and store STDOUT and STDERR into variable(s)
Let's execute a PS script that is stored in a file that does not have .ps1 extension: Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Get-Content path\script.txt))) How can I store full STDOUT ...