./run_some_process 2>&1 | tail -10 >>logfle
tail -10 will give you last ten lines, 2>&1 redirects stderr to stdout, >>logfle appends to logfile.
./run_some_process 2>&1 | tail -10 >>logfle
tail -10 will give you last ten lines, 2>&1 redirects stderr to stdout, >>logfle appends to logfile.