Questions tagged [capture-output]
13 questions
173
votes
10 answers
Node.js spawn child process and get terminal output live
I have a script that outputs 'hi', sleeps for a second, outputs 'hi', sleeps for 1 second, and so on and so forth. Now I thought I would be able to tackle this problem with this model.
var spawn = require('child_process').spawn,
temp =…

foklepoint
- 2,231
- 2
- 16
- 15
6
votes
4 answers
Is there currently a way to extract the output of a fastlane action within the fastlane actions?
I am using a third party fastlane plugin and it contains an action that will display vital information I need to capture, such as a link.
I am trying to find an elegant way to capture these logs within the fastlane actions, I am trying to avoid…

nanci.drew
- 125
- 1
- 8
3
votes
1 answer
AVFoundation, AVCaptureMetadataOutput capturing screenshot
I am using AVCaptureMetadataOutput in order to use iOS QRCode,barcode scanning feature. This works well, and I get the result of scanning through AVCaptureMetadataOutput delegate method
-(void)captureOutput:(AVCaptureOutput *)captureOutput…

zevonja
- 193
- 1
- 14
2
votes
1 answer
Output from external exe and my custom objects in powershell
(Sorry for strange title, haven't come up with anything better..)
Background
I use nunit-console to test my assemblies. It is called like this (simplified):
function Test-ByNunit {
param($assembly, $tempFile = 'c:\temp\nunit.xml')
&…

stej
- 28,745
- 11
- 71
- 104
1
vote
4 answers
C# capturing python.exe output and displaying it in textbox
I have worked on this issue for a while. I can capture the output(live) of the console window just fine, but I can't capture the output of a python console application in real time. I can capture the output of the python program after it has…

AshitakaLax
- 11
- 1
- 2
1
vote
1 answer
why can't perl's CaptureOutput::capture_exec_combined run "source"
Running a perl script on linux using CaptureOutput::capture_exec_combined. It doesn't seem to want to execute "source"
#!/usr/bin/env perl
use IO::CaptureOutput qw/capture_exec_combined/;
$cmd = "source test_capout.csh";
my ($stdouterr, $success,…

daveg
- 1,051
- 11
- 24
0
votes
0 answers
i want to capture the output of every output from the terminal to a text file but it either over writes the ole output or only saves the last one
so im runnung a semi-local chat gpt but with extra customization and i want to save all the chats to a text file. it only overwrites the old message with the new one instead of putting them on new lines as they come. is there a way to record all of…

Matthew
- 1
0
votes
0 answers
How do I capture the running command and its output of a shell command in Go?
I have the following program executing shell commands using exec.Command() in os/exec golang package and capturing the output.
package main
import (
"bufio"
"fmt"
"os/exec"
)
func main() {
cmd := exec.Command("bash", "-c", "ls -la;…

Akshay komarla
- 722
- 1
- 11
- 20
0
votes
1 answer
How to capture output from non-standard function in R?
I am trying to capture certain parts of the output from the ur.ls function I got from the GitHub.
The code that I am using is:
my_test <- ur.ls(y=mydf$x, model = "break", breaks = 2, lags = maxlag, method = "GTOS",pn = 0.1, print.results = "print"…

1muflon1
- 209
- 1
- 7
0
votes
1 answer
Why are there negative coordinate in the normalised object detection results? (CoreML,Vision,Swift, Ios)
I compiled the example.
https://developer.apple.com/documentation/vision/recognizing_objects_in_live_capture
It did not work correctly for me on an iPhone 7 Plus. The rectangles drawn did not cover the items detected.
I created an app of my own to…

William J Bagshaw
- 558
- 3
- 15
0
votes
2 answers
Visual Basic, Capture output from cmd
Sorry if it's asked before, I found out other Solutions too complicated for me..
Anyway, i am trying to search an image via cmd in visual basic code, and save the image path to string, but i cant seem to capture the output from cmd right.
Any help…

yarinc
- 41
- 2
- 9
0
votes
1 answer
"unexpectedly found nil while unwrapping an Optional value" inside captureOutput function
I have a function to rotate the hue on UIImages that work from other functions within the same class, but within the captureOutput function (used with AVCaptureVideoDataOutput), the same image object crashes my app with the "unexpectedly found nil…

Chewie The Chorkie
- 4,896
- 9
- 46
- 90
0
votes
2 answers
A function is not getting called inside a delegate method - IOS/Swift
I am developing an application with a custom camera and there I have used captureOutput method(Lets say A) which is a delegate method of AVCaptureVideoDataOutputSampleBufferDelegate.
I have used another function (Lets say B) which behaves like…

Hanushka Suren
- 723
- 3
- 10
- 32