- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,646 for ncmd (0.74 sec)
-
src/runtime/signal_windows_test.go
// build go dll cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", dllfile, "-buildmode", "c-shared", "testdata/testwintls/main.go") out, err := testenv.CleanCmdEnv(cmd).CombinedOutput() if err != nil { t.Fatalf("failed to build go library: %s\n%s", err, out) } // build c program cmd = testenv.Command(t, cc, "-o", exefile, "testdata/testwintls/main.c") testenv.CleanCmdEnv(cmd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 08:26:52 UTC 2023 - 9K bytes - Viewed (0) -
src/cmd/go/testdata/script/vendor_gopath_issue11409.txt
} func main() { gopath := changeVolume(os.Args[1], strings.ToLower) dir := changeVolume(os.Args[2], strings.ToUpper) cmd := exec.Command("go", "run", "hello.go") cmd.Dir = dir cmd.Env = append(os.Environ(), "GOPATH="+gopath) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if err := cmd.Run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } -- vend/hello/hello.go -- package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 982 bytes - Viewed (0) -
src/os/exec/example_test.go
} func ExampleCommand() { cmd := exec.Command("tr", "a-z", "A-Z") cmd.Stdin = strings.NewReader("some input") var out strings.Builder cmd.Stdout = &out err := cmd.Run() if err != nil { log.Fatal(err) } fmt.Printf("in all caps: %q\n", out.String()) } func ExampleCommand_environment() { cmd := exec.Command("prog") cmd.Env = append(os.Environ(), "FOO=duplicate_value", // ignored
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 06:18:48 UTC 2022 - 3.5K bytes - Viewed (0) -
src/cmd/go/testdata/vcstest/README
tests of cmd/go and its subpackages. They are written in a dialect of the same script language as in cmd/go/testdata/script, and the outputs are hosted by the server in cmd/go/internal/vcweb. To see the conditions and commands available for these scripts, run: go test cmd/go/internal/vcweb -v --run=TestHelp To host these scripts in a standalone server, run:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 13:00:34 UTC 2022 - 487 bytes - Viewed (0) -
src/cmd/dist/exec.go
import ( "os/exec" "strings" ) // setDir sets cmd.Dir to dir, and also adds PWD=dir to cmd's environment. func setDir(cmd *exec.Cmd, dir string) { cmd.Dir = dir if cmd.Env != nil { // os/exec won't set PWD automatically. setEnv(cmd, "PWD", dir) } } // setEnv sets cmd.Env so that key = value. func setEnv(cmd *exec.Cmd, key, value string) { cmd.Env = append(cmd.Environ(), key+"="+value) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 21:52:09 UTC 2023 - 957 bytes - Viewed (0) -
src/syscall/exec_freebsd_test.go
x := filepath.Join(root, "syscall.test") cmd := exec.Command(testenv.GoToolPath(t), "test", "-c", "-o", x, "syscall") cmd.Env = append(os.Environ(), "CGO_ENABLED=0") if o, err := cmd.CombinedOutput(); err != nil { t.Fatalf("Build of syscall in jail root failed, output %v, err %v", o, err) } cmd = exec.Command("/syscall.test", "-test.run=TestJailAttach", "/") cmd.Env = append(os.Environ(), "GO_WANT_HELPER_PROCESS=1")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 22 20:38:48 UTC 2023 - 2.4K bytes - Viewed (0) -
src/os/exec_windows.go
// at http://daviddeley.com/autohotkey/parameters/parameters.htm#WINARGV func commandLineToArgv(cmd string) []string { var args []string for len(cmd) > 0 { if cmd[0] == ' ' || cmd[0] == '\t' { cmd = cmd[1:] continue } var arg []byte arg, cmd = readNextArg(cmd) args = append(args, string(arg)) } return args }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/go/terminal_test.go
t.Errorf("stderr is not a terminal") } }) } func runTerminalPassthrough(t *testing.T, r, w *os.File) (stdout, stderr bool) { cmd := testenv.Command(t, testGo, "test", "-run=^$") cmd.Env = append(cmd.Environ(), "GO_TEST_TERMINAL_PASSTHROUGH=1") cmd.Stdout = w cmd.Stderr = w // The behavior of reading from a PTY after the child closes it is very // strange: on Linux, Read returns EIO, and on at least some versions of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 07 18:18:50 UTC 2022 - 3.3K bytes - Viewed (0) -
src/syscall/exec_unix_test.go
} executable, err := os.Executable() if err != nil { executable = os.Args[0] } cmd := testenv.Command(t, executable, "-test.run=^TestRlimitRestored$") cmd = testenv.CleanCmdEnv(cmd) cmd.Env = append(cmd.Env, "GO_WANT_HELPER_PROCESS=1") out, err := cmd.CombinedOutput() if len(out) > 0 { t.Logf("%s", out) } if err != nil { t.Fatalf("subprocess failed: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 04:41:27 UTC 2024 - 7.9K bytes - Viewed (0) -
src/cmd/go/scriptcmds_test.go
var cancel func(cmd *exec.Cmd) error if interrupt != nil { cancel = func(cmd *exec.Cmd) error { return cmd.Process.Signal(interrupt) } } cmdExec := script.Exec(cancel, waitDelay) cmds["exec"] = cmdExec add := func(name string, cmd script.Cmd) { if _, ok := cmds[name]; ok { panic(fmt.Sprintf("command %q is already registered", name)) } cmds[name] = cmd } add("cc", scriptCC(cmdExec))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 18:33:17 UTC 2024 - 3.3K bytes - Viewed (0)