Name

fdmove — move/copy a file descriptor then chain

Synopsis

fdmove [--copy] {to} {from} {next-prog}

Description

fdmove is a chain-loading utility that duplicates the (open) file descriptor from to the descriptor to, closes from unless the --copy command line option is used, and then chain loads to next-prog with the execvp(3) function.

next-prog may contain its own command line options, which fdmove will ignore.

Author

Jonathan de Boyne Pollard