&>
#!/usr/bin/env python3
from __future__ import print_function
import sys
from time import sleep
print('print to stdout')
sleep(2)
print('print to stderr', file = sys.stderr)
python w.py &>w.log &
[1] 4591
[1]+ Done python w.py &> w.log
cat w.log
print to stderr
print to stdout