As the domain manager of 200+ domains, it's essential that I am able to get the most up-to-date information for all the domains I manage and monitor. And I realise that, in general, whois sites do not update their databases often at all. 

I've been using who.is all this time but the details for domains I look up aren't always recent. What whois database is the most accurate and up-to-date? I've tried looking up a few but it's hard to tell how often each one updates its database. 


Question: Linux : how to redirect stdout & stderr to logger?
Answer: You need to combine the output of STDERR and STDOUT prior to piping it to logger. Try this instead:

/home/dirname/application_name -v 2&gt;&amp;1 | logger &amp;


Example

$ echo "hi" 2&gt;&amp;1 | logger &amp;
[1] 26818
[1]+  Done                    echo "hi" 2&gt;&amp;1 | logger

$ sudo tail /var/log/messages
Apr 12 17:53:57 greeneggs saml: hi


You can use the abbreviated notation here as well, if used cautiously in a actual Bash shell (not to be confused with Dash):

$ echo "hi" |&amp; logger &amp;


NOTE: This is equivalent to &lt;cmd1&gt; 2&gt;&amp;1 | &lt;cmd2&gt;. Again only use the above when making use of an actual Bash shell interactively, would be a good way to approach it.

excerpt from ABSG


  # |&amp; was added to Bash 4 as an abbreviation for 2>&amp;1 |.


References


Advanced Bash Scripting Guide - Chapter 20. I/O Redirection