37
38
int main(int argc, char **argv)
39
40
char buf1[128], buf2[128], *tmp;
41
int size, j, procid = -1, rc = 0;
42
43
tmp = getenv("SLURM_PROCID");
45
46
sprintf(buf1, "task %d write to stdout:", procid);
47
48
sprintf(buf1, "task %d write to stderr:", procid);
49
50
while ((size = read(STDIN_FILENO, buf1, sizeof(buf1))) != 0) {