---
name: "MPE_IO_Stdout_to_file"
section: "4"
platform: "linux"
package: "mpi-doc"
version: "1.2.7-9.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/MPE_IO_Stdout_to_file"
---

# MPE\_IO\_Stdout\_to\_file(4)

Re-direct stdout to a file

## NAME

MPE\_IO\_Stdout\_to\_file -  Re-direct stdout to a file

## SYNOPSIS

```
void MPE_IO_Stdout_to_file( char *name, int mode )
```

## PARAMETERS

- **name**

  \- Name of file.  If it contains  *%d* , this value will be replaced with the rank of the process in  *MPI\_COMM\_WORLD* .

- **mode**

  \- Mode to open the file in (see the man page for  *open* ).  A common value is  *0644* (Read/Write for owner, Read for everyone else).   Note that this value is  **anded** with your current  *umask* value.

## NOTES

Some systems may complain when standard output ( *stdout* ) is closed.

## LOCATION

mpe\_io.c
