Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2468

Raspberry Pi OS • Re: etc/rc.local does not exist

$
0
0
In fact, you usually want both. So, the usual idiom is:

Code:

something > /path/to/logfile.log 2>&1
Hi,
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



Viewing all articles
Browse latest Browse all 2468

Trending Articles