$ /bin/exec >/path/to/file.out
$ /bin/exec 2>/path/to/file.out
$ /bin/exec 1>&2
# or in most instances...
$ /bin/exec >&2
$ echo "Error: You did bad!" >&2
# note: redirections can be placed at either end if desired
$ 1>&2 /bin/exec
$ >&2 /bin/exec
$ /bin/exec 2>&1
Note: Only works with Bash shells.
$ /bin/exec &>/path/to/file.out
# as an alternative for both /bin/sh and /bin/bash
$ /bin/exec >/path/to/file.out 2>&1
$ myString="My string"
$ /bin/exec <<<$myString
# which is (somewhat) equivalent to (but does not create a sub-shell)
$ echo "My string" | /bin/exec