search for: stderr

Displaying 20 results from an estimated 4917 matches for "stderr".

2011 Apr 13
1
[PATCH hivex] maint: split long lines
...Nordahl-Hagen. * Derived from code by Markus Stephany under a compatible license: @@ -415,7 +415,8 @@ hivex_open (const char *filename, int flags) page->magic[1] != 'b' || page->magic[2] != 'i' || page->magic[3] != 'n') { - fprintf (stderr, "hivex: %s: trailing garbage at end of file (at 0x%zx, after %zu pages)\n", + fprintf (stderr, "hivex: %s: trailing garbage at end of file " + "(at 0x%zx, after %zu pages)\n", filename, off, pages); errno = ENOTSUP; goto error...
2012 Sep 14
1
[PATCH] xenpm: make argument parsing and error handling more consistent
...dentifier, and how the values get interpreted should be consistent across sub-commands (intended behavior now: non-negative values are okay, and along with omitting the argument, specifying "all" will also be accepted). For error handling, error messages should get consistently issued to stderr, and the tool should now (hopefully) produce an exit code of zero only in the (partial) success case (there may still be a small number of questionable cases). Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -36,7 +36,7 @@ #define CPUFREQ...
2010 Nov 11
1
Problem with system2(), directing STDERR to a file
According to ?system2, I should be able to direct the output of STDERR to a file by giving the filename as a character vector to the "stderr" argument. But here is what happens. Given a ruby script test.rb (with its executable bit set): #!/usr/bin/env ruby STDOUT.puts "stdout" STDERR.puts "stderr" And the following R code: > t &lt...
2006 Feb 25
9
trace("") prints hex dump table
I''m running SunOS unknown 5.11 snv_33 i86pc i386 i86pc and to print a blank line in the output of my script I tried adding: trace(""); which printed 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2007 Jun 22
2
STDERR in AGI
Hi all, I just started programming using AGI and I have a simple question about STDERR. If I understood it right, all the messages sent to "STDERR" should be shown in the Asterisk console, but using the following python code I just can't see anything. #!/usr/bin/python # # File: /var/lig/asterisk/agi-bin/agi-test.py # # Description: An AGI Script # impor...
2002 May 12
1
minor error in "stderr & stdout" web site FAQ
Hello, There appears to be an error in the stderr redirection of the crontab rsync entry. In Bourne shell and compatibles (crontab entries are run by the Bourne shell) redirections are processed from left to right and "2>&1" redirects the stderr to the same location stdout is currently directed and not to stdout. Hence: c...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
Like with the previous commit, this replaces instances of: if (something_bad) { fprintf (stderr, "%s: error message\n", guestfs_int_program_name); exit (EXIT_FAILURE); } with: if (something_bad) error (EXIT_FAILURE, 0, "error message"); (except in a few cases were errno was incorrectly being ignored, in which case I have fixed that). It's slightly more...
2010 Aug 04
1
[PATCH] Send trace output to stderr
Trace output sent to stdout can be lost in the event of a crash due to buffering. This patch sends it to stderr instead. --- src/generator.ml | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/generator.ml b/src/generator.ml index 52e7aba..db674a6 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -6174,7 +6174,7 @@ check_state (guestfs_h *g, const c...
2012 Mar 11
1
[PATCH] Coalesce printable characters in debug and trace messages (RHBZ#802109).
...s___call_callbacks_message (guestfs_h *g, uint64_t event, * Case 2: Messages from other sources: These messages should NOT * contain \n or \r. If they do, it is escaped. However we also * need to print a real end of line after these messages. + * + * RHBZ#802109: Because stderr is usually not buffered, avoid + * single 'putc' calls (which translate to a 1 byte write), and + * try to send longest possible strings in single fwrite calls + * (thanks to Jim Meyering for the basic approach). */ +#define NO_ESCAPING(c) \ + (c_isprint ((c)) || (fro...
2016 Sep 08
4
[PATCH 0/3] Use gnulib's getprogname
Hi, this series update libguestfs to a recent gnulib version, so that we can use its new getprogname module, and solve altogether one of the porting issues (the need for 'program_name' by the error module of gnulib), and have a single way to get the name of the current program. A number of changes in tools mostly, although mechanical. Thanks, Pino Toscano (3): Update gnulib to latest
2007 Apr 20
2
cat() to STDERR
Dear R wizards---I read Brian Ripley's post from 2004 which said that it was not possible to print to STDERR. Alas, I have more modest needs. I was wondering if it was possible to just send a string to STDERR with cat() while in CMD BATCH mode. Is it not possible to open STDERR in R? (Or does R use STDERR for itself and redirect it into the output stream?) This would be on a standard Unix (gentoo) sy...
2017 Feb 23
4
llvm-lit: 2>&1 and FileCheck
Hi all, quite a few tests use the pattern "2>&1 | FileCheck %s". AFAIK how stdout and stderr are merged into a single character stream is undefined and depends e.g. on whether stdout is buffered. I think we are often saved by the fact that standard output is written only at the end of the program and stderr is unbuffered, i.e. always written before stdout. A lot of tests disable stdout us...
2011 Oct 05
3
suppressing stderr output from system() calls
..., I'm trying to suppress/redirect/squash the output from commands like install.packages, or download.file. The problem is that none of: sink(..., type="message"), sink(..., type="output"), capture.output, suppressMessages are quite doing the trick. Output gets written to the stderr stream, despite any combination of the above suppression commands. According to ?sink: Messages sent to ‘stderr()’ (including those from ‘message’, ‘warning’ and ‘stop’) can be diverted by ‘sink(type = "message")’ (see below). I'm pretty sure it's the system(), or .Internal() cal...
2009 Aug 24
5
[0/5] guestfish: detect stdout-write failure
...le, program_invocation_name, used by error, called by atexit+close_stdout. I'll fix that via gnulib's progname module later today or tomorrow. Note that all other diagnostics (e.g., below) do use the sanitized name. The second patch is to make guestfish write --help output to stdout, not stderr, per convention. Also, since --help output is pretty long, I find it clearer (e.g., when I misspell an option) to write a brief diagnostic, like $ ./guestfish --fjd guestfish: unrecognized option '--fjd' Try `guestfish --help' for more information. [Exit 1] The third...
2004 Sep 10
2
flac_read callback not called in Windows?
...ws is the code I am using, my program just sits looping in the while block in the flac_update function: // callback for the stream // we need to get length words from the flac decode into the buffer static void flac_update(int param, INT16 *buffer, int length) { FLAC__bool res = true; fprintf(stderr, "start flac_update..."); //TODO: check for playing? probably a better way to stop the sound if(laserdisc_playing) { while(length && res) { // need to decode some more data if(!decoded_samples) { // fprintf(stderr, "start flac_seekable_decoder_process...&qu...
2017 Mar 31
0
[PATCH 2/3] Use Unicode single quotes ‘’ in place of `' in strings throughout.
...-------- 22 files changed, 37 insertions(+), 37 deletions(-) diff --git a/align/scan.c b/align/scan.c index 175df1e83..7ae8adf1f 100644 --- a/align/scan.c +++ b/align/scan.c @@ -76,7 +76,7 @@ static void __attribute__((noreturn)) usage (int status) { if (status != EXIT_SUCCESS) - fprintf (stderr, _("Try `%s --help' for more information.\n"), + fprintf (stderr, _("Try ‘%s --help’ for more information.\n"), getprogname ()); else { printf (_("%s: check alignment of virtual machine partitions\n" diff --git a/cat/cat.c b/cat/cat.c index...
2001 Nov 06
1
incorrect xlim error message in image() (PR#1160)
...e with figureing it out and he sugegstedd that it's a bug and sent me the following email: _____________________ For giggles, I tweaked plot3d.c to track where the error occured. The diff output is: !!!THIS PATCH IS A BUG TRACE, NOT A BUG FIX!!! --PATCH BEGINS -- 1518a1519 > fprintf(stderr,"test 1\n"); 1519a1521 > fprintf(stderr,"test 2\n"); 1520a1523 > fprintf(stderr,"test 3\n"); 1522,1524c1525,1542 < for (i = 1; i < nx; i++) < if (!R_FINITE(x[i]) || x[i] <= x[i - 1]) goto badxy; < for (j = 1; j < ny; j++) -...
2012 Sep 10
1
strange error noise ...
The 'prepare' script uses a somewhat unusual construct a few places that has permissions errors, leaking (harmless) noise to stderr /home/artwork/artwork/trunk/Scripts/Bash/Functions/Commons/ cli_printMessage.sh: line 70: /dev/stderr: Permission denied echo "$MESSAGE" > /dev/stderr /home/artwork/artwork/trunk/Scripts/Bash/Functions/Commons/ cli_printMessage.sh: line 237: /dev/stderr: Permission den...
2013 Jul 08
2
Re: deadlock on connection loosing
On 07.07.2013 01:53, Александр wrote: > В письме от Воскресенье, 30-июн-2013 03:41:37 пользователь Александр написал: >> В письме от Вторник, 25-июн-2013 11:47:10 пользователь Michal Privoznik .... > > i have found source of problem, my code looks like this: > > int count = virConnectListAllDomains(connection, NULL, 0); > .... > domain = virDomainDefineXML(connection,
2014 Jul 16
1
Allow for passing Ctrl-C and don't mix stderr with stdout
I have been losing my mind over this problem, so any ideas are welcome. When running non-interactive jobs on remote machines, I want output to stderr and to stdout to remain separate in two streams just as if they were run locally. I also want jobs running remotely to die when I press Ctrl-C just as if they were run locally. At first glance these do not seem to be mutual exclusive, but when you get further into the details it seems they more or...