when I execute command foo
in console (ie tty1
), the output is sent to the console.
daemon foo started successfully
When I execute the same command in virtual terminal (terminator
), I see no output in the terminal, but the output is sent to syslog
.
Why is this, and how can I control where the output is sent ?
I have an init startup script that executes command foo
, and the output is sent to tty1
. I would like to send the output to syslog instead (as if I had started the init script in virtual terminal, instead of in console)
/etc/rc*
standard script on a recent Unix, then the output of your script will behave as you want: throughsyslog
. Just try areboot
.