Hi,In fact, you usually want both. So, the usual idiom is:Code:
something > /path/to/logfile.log 2>&1
Sorry, bit confused. The original comment has "2" before the chevron (pipe char?), but you line of code has it after the logfile
e.g.
su - dave -c '/home/dave/bin/hatari 2>/home/dave/hatari.log &'
Do you mean something like this...
su - dave -c '/home/dave/bin/hatari >/home/dave/hatari.log 2>1&'
Thanks
Statistics: Posted by thedavegray — Tue Jan 07, 2025 8:08 pm