Questions tagged [output]

The externally observable consequences of calling a program on some input

The output of a program is the set of externally observable consequences of running a program on the given input.

A program's output can be manifested in several forms:

  1. What is printed to and/or
  2. What is written to an external file
  3. What changes are made to the inputs, which are then used in other functions or programs
9797 questions
10
votes
1 answer

How to output a file in gnuplot multiplot mode?

I am plotting graphs in gnuplot (version 4.6 patchlevel 5) multiplot mode, which are being updated using reread. set multiplot layout 3, 3 do for [planeIter=4:10:3] for [ringIter=0:20:10] { plot for [quadIter=0:90:30] path/to/file \ using…
Shenan
  • 425
  • 2
  • 9
  • 20
10
votes
2 answers

Append output of a command to file without newline

I have the following line in a unix script: head -1 $line | cut -c22-29 >> $file I want to append this output with no newline, but rather separated with commas. Is there any way to feed the output of this command to printf? I have tried: head -1…
KateMak
  • 1,619
  • 6
  • 26
  • 42
10
votes
2 answers

Reading Strings from a file and putting them into an array with Groovy

Pardon the newbie question but I am learning how to do basic stuff with Groovy. I need to know how to either read words from a file (let's call the file list.txt) or from the keyboard and store them into an array of strings (let's say an array of…
Inquirer21
  • 339
  • 2
  • 5
  • 12
10
votes
2 answers

Adding information to Behat output from custom context code

I am trying to determine how I would add additional information to Behat's output (pretty, html, junit, etc) so I can have more contextual information for the test purposes. Specifically I have some unique data that gets generated during some of…
Patrick
  • 3,302
  • 4
  • 28
  • 47
10
votes
1 answer

Angled brackets in Maven console output

Looking at the picture below, I noticed that Maven sometimes prints 3 angled brackets (">>>" or "<<<") when invoking particular goals. What do these angled brackets mean? All other goal invocations are preceded by 3 hyphens ("---"). My guess is…
spg
  • 9,309
  • 4
  • 36
  • 41
10
votes
3 answers

SQL Server Performance ResultSet vs Output Parameter vs Return Value

I'm weighing the potential performance impact of using one of three different methods of returning a single, scalar value from a stored procedure to my C# routine. Can anyone tell me which of these is "faster" and, most importantly, why? Method…
Randy Braze
  • 105
  • 2
  • 6
10
votes
4 answers

Extern in multiple files and possible double definition

I was running the following codes compiled together as: gcc A.c B.c -o combined Program A: #include int a=1; int b; int main() { extern int a,b; fun(); printf("%d %d\n",a,b); } Program B: int a; int b=2; int fun() { printf("%d %d\n",a,b);…
tapananand
  • 4,392
  • 2
  • 19
  • 35
10
votes
2 answers

Python console application - output above input line

I am trying to write a console application in Python3. The problem is I would like all output messages EG: print("Status message") to be above the input line at the bottom. Status message 1 Status message 2 Status message 3 Console:> I want to type…
Sean Wilkinson
  • 111
  • 2
  • 7
9
votes
3 answers

Capture STDIN / STDERR / STDOUT of a process AFTER it's been started, using command line?

Thanks! My usercase: I started a lengthy interactive 'configure' process (say under 'screen'), and then realised I need to always answer 'no' until I see a particular keyword. Seems a waste of time to do this by hand (not to say that I can easily…
John Quilder
  • 425
  • 4
  • 12
9
votes
0 answers

Espresso Test Output Truncated in Console, How to Get Full Results?

When outputting test failures with multiple lines, I've found that Gradle and the Android Plugin truncate results. For example, if an exception message has 12 lines, only 3 will display in the console. The other 12 lines, along with the stack trace,…
Danielle
  • 101
  • 1
  • 4
9
votes
1 answer

Output events's Angular in ReactJs

I was looking the way to create in ReactJs similar output events like Angular. I am making a library of components in ReactJs according to Atomic design, so, I have, for example, a Button injected in other component, and I would like to know how I…
Agustin Herrera
  • 363
  • 5
  • 14
9
votes
1 answer

CAPTURE_AUDIO_OUTPUT not asked for permission at runtime

im trying to record sound from dictaphone but on android 6+ i get permission error. I add code for asking permission (have 3 permissions for ask ) 2 work but CAPTURE_AUDIO_OUTPUT show error. Its just not ask me to grant permission. In logs its…
Peter
  • 2,480
  • 6
  • 39
  • 60
9
votes
2 answers

How to output above the last printed line?

Is there a way in python to print something in the command line above the last line printed? Or, similarly to what I want to achieve, remain the last line intact, that is, not overwrite it. The goal of this is to let the last line in the command…
PyCV
  • 315
  • 2
  • 11
9
votes
1 answer

Invoke-RestMethod OutFile Empty When PassThru Used

Using PowerShell 4.0 and Invoke-RestMethod cmdlet. I'm having trouble with the -OutFile and -PassThru options. Whenever I add the -PassThru option, my -OutFile is created but the contents are Empty! According to the Invoke-RestMethod Documentation,…
Mister_Tom
  • 1,500
  • 1
  • 23
  • 36
9
votes
4 answers

Angular pass data from child to parent

I'm learning/working on Angular project, I've done a lot and I try to do the things "right way", so now what i want to do is this: I want to get the variable (output) from child component to parent component, but I don't want to use output, I don't…
nikagar4
  • 830
  • 4
  • 11
  • 23