Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd2.stdout_behavior = std.ChildProcess.StdIo.Pipe;
- cmd2.stdin_behavior = std.ChildProcess.StdIo.Pipe;
- try cmd2.spawn();
- if (cmd2.stdin) |fil| {
- _ = try fil.write(buffer2[0..]);
- } else continue;
- var buffer3: []u8 = undefined;
- if (cmd2.stdout) |fil| {
- std.debug.print("here\n", .{});
- buffer3 = try fil.readToEndAlloc(alloc, space);
- std.debug.print("outputr: [{}]\n", .{buffer3[0..]});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement