Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 342 for STDIN (0.16 sec)

  1. tools/istio-iptables/pkg/dependencies/stub.go

    	}, nil
    }
    
    func (s *DependenciesStub) execute(quietly bool, cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) {
    	// We are either getting iptables rules as a `stdin` blob in `iptables-save` format (if this is a restore)
    	if stdin != nil {
    		buf := bufio.NewScanner(stdin)
    		for buf.Scan() {
    			stdincmd := buf.Text()
    			s.ExecutedAll = append(s.ExecutedAll, stdincmd)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/runtime/testdata/testfds/main.go

    	if err != nil {
    		log.Fatalf("os.Open failed: %s", err)
    	}
    	defer f.Close()
    	b, err := io.ReadAll(os.Stdin)
    	if err != nil {
    		log.Fatalf("io.ReadAll(os.Stdin) failed: %s", err)
    	}
    	if len(b) != 0 {
    		log.Fatalf("io.ReadAll(os.Stdin) returned non-nil: %x", b)
    	}
    	fmt.Fprintf(os.Stdout, "stdout\n")
    	fmt.Fprintf(os.Stderr, "stderr\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 16:33:33 UTC 2023
    - 642 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_timeout_stdin.txt

    [short] skip 'runs a test that hangs until its WaitDelay expires'
    
    ! go test -v -timeout=1m .
    
    	# After the test process itself prints PASS and exits,
    	# the kernel closes its stdin pipe to to the orphaned subprocess.
    	# At that point, we expect the subprocess to print 'stdin closed'
    	# and periodically log to stderr until the WaitDelay expires.
    	#
    	# Once the WaitDelay expires, the copying goroutine for 'go test' stops and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:23:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator_test.go

    		ctx, err := createSPDYServerStreams(w, req, Options{
    			Stdin:  true,
    			Stdout: true,
    		})
    		if err != nil {
    			t.Errorf("error on createHTTPStreams: %v", err)
    			return
    		}
    		defer ctx.conn.Close()
    		// Loopback STDIN data onto STDOUT stream.
    		_, err = io.Copy(ctx.stdoutStream, ctx.stdinStream)
    		if err != nil {
    			t.Fatalf("error copying STDIN to STDOUT: %v", err)
    		}
    
    	}))
    	defer spdyServer.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  5. pkg/client/tests/remotecommand_test.go

    		},
    		{
    			TestName:        "in/out/err",
    			Stdin:           "a",
    			Stdout:          "b",
    			Stderr:          "c",
    			MessageCount:    100,
    			ClientProtocols: []string{remotecommandconsts.StreamProtocolV2Name},
    			ServerProtocols: []string{remotecommandconsts.StreamProtocolV2Name},
    		},
    		{
    			TestName:        "oversized stdin",
    			Stdin:           strings.Repeat("a", 20*1024*1024),
    			Stdout:          "b",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  6. src/cmd/go/terminal_test.go

    	// parent has finished reading from the PTY, at which point we unblock the
    	// child by closing its stdin pipe.
    	stdin, err := cmd.StdinPipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	t.Logf("running %s", cmd)
    	err = cmd.Start()
    	if err != nil {
    		t.Fatalf("starting subprocess: %s", err)
    	}
    	w.Close()
    	t.Cleanup(func() {
    		stdin.Close()
    		if err := cmd.Wait(); err != nil {
    			t.Errorf("suprocess failed with: %s", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 18:18:50 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/parameters/ConsumerOperationParameters.java

            public Builder setColorOutput(Boolean colorOutput) {
                this.colorOutput = colorOutput;
                return this;
            }
    
            public Builder setStdin(InputStream stdin) {
                this.stdin = stdin;
                return this;
            }
    
            public Builder setJavaHome(File javaHome) {
                validateJavaHome(javaHome);
                this.javaHome = javaHome;
                return this;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 19:46:37 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator.go

    			stdin = flowrate.NewReader(stdin, h.MaxBytesPerSec)
    		}
    		opts.Stdin = stdin
    	}
    	if h.Options.Stdout {
    		stdout := websocketStreams.stdoutStream
    		if h.MaxBytesPerSec > 0 {
    			stdout = flowrate.NewWriter(stdout, h.MaxBytesPerSec)
    		}
    		opts.Stdout = stdout
    	}
    	if h.Options.Stderr {
    		stderr := websocketStreams.stderrStream
    		if h.MaxBytesPerSec > 0 {
    			stderr = flowrate.NewWriter(stderr, h.MaxBytesPerSec)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/StdioIntegrationTest.groovy

            // In fact, it would be much better to test this feature using shared daemons
            executer.requireIsolatedDaemons()
        }
    
        def "task can read stdin when stdin has bounded length"() {
            given:
            buildFile << '''
    task echo {
        doLast {
            def reader = new BufferedReader(new InputStreamReader(System.in))
            while (true) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/os/exec/exec_test.go

    		return string(line)
    	}
    
    	err = c.Start()
    	check("Start", err)
    
    	_, err = stdin.Write([]byte("O:I am output\n"))
    	check("first stdin Write", err)
    	if g, e := line("first output line", outbr), "O:I am output"; g != e {
    		t.Errorf("got %q, want %q", g, e)
    	}
    
    	_, err = stdin.Write([]byte("E:I am error\n"))
    	check("second stdin Write", err)
    	if g, e := line("first error line", errbr), "E:I am error"; g != e {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top