command to get tty number
How to get tty number displaying in the screen.
Example, I run a program in module by cron.(automatically)
But I want to get the tty number that displayed in the monitor,
in the program that executed by cron.
Any command to get the tty number?
|