myprogram > /dev/null 2>&1 With: stdin == 0 stdout == 1 (default if omitted) stderr == 2 > /dev/null, redirects stdout (omitted) into /dev/null. 2>&1 Redirects stderr into stdout. Some confusing syntax: 2>1 Would redirect stdoud into a file called 1. 2&>1 Execute file 2 in the background and redirect its output to a file [...]
-
« Home
Pages
-
RSS Feeds