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
4
votes
3 answers

delay output in c++ on linux

I want some random characters to be printed to console and then deleted by "\b". After this I want to put my own variable so it will be looking like "randomizing". The problem is that it is happening too fast. I wanted to delay the output by using…
sebek
  • 87
  • 1
  • 2
  • 8
4
votes
1 answer

dist() function in R outputs

I am curious about dist() output results that I get. More specifically, if I try a=matrix(rnorm(1:100),nrow=10) dist(a) ok, I get what I expected 1 2 3 4 5 6 7 8 9 2 3.700582 …
Kwnwps
  • 353
  • 1
  • 4
  • 15
4
votes
1 answer

C scanf() issues?

In this simple guess-the-number game, scanf() is not working the second time in main. I would really appreciate if someone could explain why doesn't work and how to fix it. Any tips on how to clean this code up?. Thank…
David
  • 49
  • 3
4
votes
1 answer

Non-persistent formatting of streams

What's the best way (if any) to format std::*stream output in localized manner, so that formatting changes in one location won't affect the use of that stream in other locations? That is, I'd like to set format of the stream for a single statement,…
Michael
  • 5,775
  • 2
  • 34
  • 53
4
votes
2 answers

Calling stored procedure with OUTPUT parameter in dynamic SQL

I am calling a stored procedure with OUTPUT parameter using dynamic SQL. set @cSql='EXEC '+@cName+'.dbo.uspNDateGet ''' +convert(varchar(10),@dtAsOn,102)+''',''' +@cBr+''',''' +@cLCode+''',''' +convert(varchar(10),@dtNDate,102)+'''…
user2944673
  • 91
  • 2
  • 11
4
votes
4 answers

C - scanf value directly from terminal

I have a c process that waits for a scanf() input. I want to save its results to a *.txt file. To terminal (linux) ./process > out.txt What's the way to write in terminal the scanf prehand? Thanks.
falsobuio
  • 93
  • 1
  • 10
4
votes
0 answers

PIG Streaming: _some_ output files are missing

The problem can be reproduced using a simple test. The "pig" script is as follows: SET pig.noSplitCombination true; dataIn = LOAD 'input/Test'; DEFINE macro `TestScript` input('DummyInput.txt') output('A.csv', 'B.csv', 'C.csv', 'D.csv', 'E.csv')…
4
votes
3 answers

Telling nohup to write output in real-time

When using nohup the output of a script is buffered and only gets dumped to the log file (nohup.out) after the script has finished executing. It would be really useful to see the script output in something close to real-time, to know how it is…
feedMe
  • 3,431
  • 2
  • 36
  • 61
4
votes
3 answers

Parentheses and quotation marks in output

Sometimes when I use the print function, parentheses and quotation marks appear in the output. I'm using Python 3.4 and writing the code in Sublime Text on a mac. Here's an example Input: a=2 print("a",a) Output: ('a', 2) I'd like to show only a…
Noa
  • 111
  • 1
  • 2
  • 6
4
votes
4 answers

Array.ToString() returning System.Char[] c#

Im making a hangman game, at the start of the game the word that the player must guess is printed as stars. I have just started making it again after attempting to write it once and just having messy code that i couldn't bug fix. So I decided it…
Needham
  • 457
  • 1
  • 6
  • 15
4
votes
2 answers

Stata tabstat change order/sort?

I am using tabstat in Stata, and using estpost and esttab to get its output to LaTeX. I have tabstat to display statistics by group. For example, tabstat assets, by(industry) missing statistics(count mean sd p25 p50 p75) The question I have is…
rajvijay
  • 1,641
  • 4
  • 23
  • 28
4
votes
1 answer

How do I get these results in separate automator variables?

I have made a small automator script that runs a bash shell script and gets two outputs... On viewing results it appears like this below... I want them in two automator variables Assume I used a script like echo "200" echo "19 hours, 4 minutes and…
Saifur Rahman Mohsin
  • 929
  • 1
  • 11
  • 37
4
votes
1 answer

Converting many typescript files into 1 js file while also using commonJS modules

I've been working with the "--out" compiler flag to create 1 javascript output file. I have many .ts files and was managing this by placing this in the top of every file: /// Now I'd really like to use…
Flion
  • 10,468
  • 13
  • 48
  • 68
4
votes
1 answer

Explanation for Hadoop Mapreduce Console Output

I am newbie in hadoop environment. I already set up 2 node cluster hadoop. then I run sample mapreduce application. (wordcount actually). then I got output like this File System Counters FILE: Number of bytes read=492 FILE: Number of bytes…
Whilda Chaq
  • 364
  • 1
  • 6
  • 17
4
votes
0 answers

Getting live output from SteamCMD console C#

So the main problem is, that I can only get output programatically from SteamCmd when it terminates. The expected output would be: Redirecting stderr to 'D:\User\Downloads\TF2Server\SteamCMD\logs\stderr.txt' [ 0%] ElAęrhetAĹ frissAştAęsek…
András Geiszl
  • 966
  • 2
  • 16
  • 36