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
14
votes
1 answer

how to output success or failure of cp command to file

I'm going to be running a shell script containing a CP command using a scheduled cron job. I would like to include in the script something to output to a log file whether the copy was successful or failed. Appreciate any advice in advance. Thanks
user2841861
  • 423
  • 2
  • 8
  • 22
14
votes
1 answer

Jenkins "Console Output" is virtually empty

I have a fresh Jenkins install on Ubuntu New Job -> Build multi-configuration project Scroll down and click "Add build step" -> Execute shell and enter: echo hello Run the job (it succeeds) Look at the Console Output for the run: Started by user…
ebeezer
  • 430
  • 6
  • 12
14
votes
1 answer

C - How to suppress a sub function's output?

I want to call bar() in foo(), bar() will change some global variables' values(this is what I want), but meanwhile produce some output( I dont' want any output); void foo() { //I have tried: //system("1>&/dev/null") and of course this won't…
CDT
  • 10,165
  • 18
  • 66
  • 97
14
votes
4 answers

suppress scapy warning message when importing the module

I'm writing a small script, that gathers some information using scapy and then returns some xml code, that I'll pass on to the xmlrpc interface of metasploit. I'd like it that my script only returns xml, and no additional warnings etc. I can…
user857990
  • 1,140
  • 3
  • 14
  • 29
14
votes
8 answers

New line in PHP output in a text file

My php form which saves the output in a text file glues the result to one string like: Name1Email1The Message1Name2Email2The Message2Name3Email3The Message3Name4Email4The Message4 But I need spaces and/or newlines. I normaly don't use PHP so I don't…
Darth Severus
  • 143
  • 1
  • 1
  • 4
13
votes
1 answer

Batch - Write output of DIR to a variable

I have to store the ouput of DIR in a variable. This was asked before e.g. here or here or here. They all provide an answer more or less similar to what I'm using right now: %= Find the *.sln file and write its path to the file temp.temp =% DIR /s/b…
derHugo
  • 83,094
  • 9
  • 75
  • 115
13
votes
2 answers

How to produce both .html and .md from an .Rmd (Rmarkdown) and rename them?

I know making .Rmd produce .html file or .md file should use the following codes --- title: "report" output: html_document --- or --- title: "report" output: md_document --- But how to produce the two at the same time? I try the following, but it…
Ding Li
  • 673
  • 1
  • 7
  • 19
13
votes
1 answer

Why does add function have no effect in c++ 11 thread?

I am trying to learn the c++ 11 thread and have following code : #include #include #include #include #include void add(int& i){ std::mutex some_mutex; // std::cout << " I am " << std::endl; …
pokche
  • 1,141
  • 12
  • 36
13
votes
1 answer

How to open gnuplots in full screen and a particular size?

I am plotting graphs in gnuplot and would like to open them in full screen and a particular size. Previously, I have been outputting graphs in multiplot mode and updating them using reread; so, when I maximise it manually, the plots fill the screen…
Shenan
  • 425
  • 2
  • 9
  • 20
13
votes
2 answers

Powershell: Update current output line

is there a way to update the current line of the command output in powershell? i know how to write to the same line: Write-Host "hello " -NoNewLine Write-Host "world!" -NoNewLine but is there a way to complete replace the current line? something…
Dili
  • 556
  • 1
  • 5
  • 14
13
votes
5 answers

how to run pl/sql program in oracle sql developer

DECLARE message varchar2(20):= 'Hello, World!'; BEGIN dbms_output.put_line(message); END; How can I execute above pl/sql program in Oracle SQL Developer. Can any one suggest me?
user2659722
13
votes
2 answers

Output Text to Octave Console

Lets say I have a variable A=5 and i want to output it, but with some text added in front and after it. Something like this: "There are 5 horses." (mind that 5 should be changable variable A) If I write: disp("There are "),disp(A),disp("…
user1926550
  • 539
  • 5
  • 10
  • 18
12
votes
3 answers

Amazon + Django each 12 hours appears that [Errno 5] Input/output error

I recently setup and deploy an Amazon EC2 instance for deploy my django project. I was interacting with my application via browser when I get this error in the browser: errno 5 input/output error django This error did reference to some function…
bgarcial
  • 2,915
  • 10
  • 56
  • 123
12
votes
4 answers

How to position the input text cursor in C?

Here I have a very simple program: printf("Enter your number in the box below\n"); scanf("%d",&number); Now, I would like the output to look like this: Enter your number in the box below +-----------------+ | |*| | …
It'sRainingMen
  • 173
  • 1
  • 1
  • 10
12
votes
2 answers

Python: fastest way to write pandas DataFrame to Excel on multiple sheets

I need to export 24 pandas data frames ( 140 columns x 400 rows) to Excel, each into a different sheet. I am using pandas’ built-in ExcelWriter. Running 24 scenarios, it takes: 51 seconds to write to an .xls file (using xlwt) 86 seconds to write to…
Pythonista anonymous
  • 8,140
  • 20
  • 70
  • 112