how to login a tty in startup
I want to execute some command on special tty (for example tty2) in my linux startup so every time the system reboots this commands execute on that tty. I used this link to do : http://www.humbug.in/2010/utility-to-... It works fine but problem is , in startup I need to login desired tty then execute the commands. Is there any way to login a tty by some command at the beginning? Thanks
It would help to know specifically what you want to accomplish by this method. I suspect there is a better method, perhaps rc.local as @Florian suggested, or a service unit.