Unfortunately my tty is not a real device. I am logged in remotely using SSH.
I am managing an application that writes certain messages to console. I don't see them in /var/adm/messages. I think in the simplest form, I am trying to figure out how to access messages written to console, like:
Your application should use the logger facility instead of directly accessing the console. Anyway, if your application has the /dev/console steadily open, you can figure out what file descriptor it is using using pfiles:
pfiles $(pgrep application-name)
The console file descriptor (here 22) should appear this way:
not sure but may be this is OK for you...
run tty to check pts number something like this
root@solaris# tty
/dev/pts/5
root@solrais#
after you now tty number you can redirect messages like this way
echo"some message here" > /dev/pts/5