Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for Stderr (0.15 sec)

  1. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

            private final int code;
            private final String stdout;
            private final String stderr;
    
            public ExecResult(String[] args, int code, String stdout, String stderr) {
                this.args = args;
                this.code = code;
                this.stdout = stdout;
                this.stderr = stderr;
            }
    
            @Override
            public String toString() {
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 26 09:46:00 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  2. misc/go_android_exec/main.go

    	// and wait for our os.Stderr (and os.Stdout) to close as a result.
    	// However, if the os.Stderr (or os.Stdout) file descriptors are
    	// passed on, the hanging adb subprocess will hold them open and
    	// go test will hang forever.
    	//
    	// Avoid that by wrapping stderr, breaking the short circuit and
    	// forcing cmd.Run to use another pipe and goroutine to pass
    	// along stderr from adb.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  3. cni/pkg/util/executil.go

    	stdout := &bytes.Buffer{}
    	stderr := &bytes.Buffer{}
    	externalCommand.Stdout = stdout
    	externalCommand.Stderr = stderr
    
    	err := externalCommand.Run()
    
    	if len(stdout.String()) != 0 {
    		log.Debugf("Command output: \n%v", stdout.String())
    	}
    
    	if err != nil || len(stderr.Bytes()) != 0 {
    		log.Debugf("Command error output: \n%v", stderr.String())
    		return errors.New(stderr.String())
    	}
    
    	return nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/c/c_test.c

      TF_NewWritableFile(full_path, &h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_NewWritableFile failed: %s\n", TF_Message(status));
        return 1;
      }
      fprintf(stderr, "wrote %s\n", full_path);
      free(full_path);
      TF_CloseWritableFile(h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_CloseWritableFile failed: %s\n", TF_Message(status));
      }
      TF_StringStreamDone(s);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. misc/ios/detect.go

    	if err != nil {
    		fmt.Println(strings.Join(cmd.Args, "\n"))
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	return out
    }
    
    func check(err error) {
    	if err != nil {
    		fail(err.Error())
    	}
    }
    
    func fail(msg string, v ...interface{}) {
    	fmt.Fprintf(os.Stderr, msg, v...)
    	fmt.Fprintln(os.Stderr)
    	os.Exit(1)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/bufio/example_test.go

    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading standard input:", err)
    	}
    }
    
    // Return the most recent call to Scan as a []byte.
    func ExampleScanner_Bytes() {
    	scanner := bufio.NewScanner(strings.NewReader("gopher"))
    	for scanner.Scan() {
    		fmt.Println(len(scanner.Bytes()) == 6)
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "shouldn't see an error scanning a string")
    	}
    	// Output:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  7. .github/workflows/CheckBadMerge.groovy

            int returnCode = process.waitFor()
            String stdout = stdoutFuture.get()
            String stderr = stderrFuture.get()
            return new ExecResult(stderr: stderr, stdout: stdout, returnCode: returnCode)
        }
    
        static String getStdout(String command) {
            ExecResult execResult = exec(command)
    
            assert execResult.returnCode == 0: "$command failed with return code: $execResult"
    Groovy
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Tue Dec 19 10:35:44 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  8. configure.py

    
    def run_shell(cmd, allow_non_zero=False, stderr=None):
      if stderr is None:
        stderr = sys.stdout
      if allow_non_zero:
        try:
          output = subprocess.check_output(cmd, stderr=stderr)
        except subprocess.CalledProcessError as e:
          output = e.output
      else:
        output = subprocess.check_output(cmd, stderr=stderr)
      return output.decode('UTF-8').strip()
    
    
    def cygpath(path):
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  9. src/cmd/asm/internal/flags/flags.go

    		return ""
    	}
    	return fmt.Sprint(*m)
    }
    
    func (m *MultiFlag) Set(val string) error {
    	(*m) = append(*m, val)
    	return nil
    }
    
    func Usage() {
    	fmt.Fprintf(os.Stderr, "usage: asm [options] file.s ...\n")
    	fmt.Fprintf(os.Stderr, "Flags:\n")
    	flag.PrintDefaults()
    	os.Exit(2)
    }
    
    func Parse() {
    	objabi.Flagparse(Usage)
    	if flag.NArg() == 0 {
    		flag.Usage()
    	}
    
    	// Flag refinement.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. internal/logger/target/testlogger/testlogger.go

    			logf = tbb.Logf
    		}
    	} else {
    		switch t.action.Load() {
    		case errorMessage:
    			logf = func(format string, args ...any) {
    				fmt.Fprintf(os.Stderr, format+"\n", args...)
    			}
    		case fatalMessage:
    			logf = func(format string, args ...any) {
    				fmt.Fprintf(os.Stderr, format+"\n", args...)
    			}
    			defer os.Exit(1)
    		default:
    			logf = func(format string, args ...any) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top