blob: 0af1909393e673e4b448401de4495f0fbe71b874 (
plain)
1
2
3
4
5
6
7
8
9
10
|
BEGIN {
# We use "&&" and not ";" so it works with Windows shells as well.
cmd = "echo test1&& echo test2&& sleep 2"
cmd |& getline x
print x
close(cmd, "from")
cmd |& getline x
print x
print ERRNO
}
|