I have a program I need to run at startup, it has output on stdout and stderr that I want to redirect to the system log using the logger command. What I have in my startup script is thie:
/home/dirname/application_name -v|logger 2>&1 &
This is redirecting the stdout to syslog just fine but stderr is coming to the console, so I need to refine the command.
>&
: tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html