I am trying to install new server and setting up user.
To make life easier I need to tty command to see if is psuedo terminal. If is psuedo terminal i.e. /dev/ttyp*** then i want set up one variable Called OBNAME TO certain value in profie.
I can find value of tty from tty command. However i have been unable to check the ouptput to see if 9 byte is equal to p
Any help will be appreciated. I am trying to avoid setting 50 users again
I have tried cut command, however i can not final result to a variable to evaluate.
I can use if tty >/dev/ttyo or check 9 byte of tty output.
Thanks
To make life easier I need to tty command to see if is psuedo terminal. If is psuedo terminal i.e. /dev/ttyp*** then i want set up one variable Called OBNAME TO certain value in profie.
I can find value of tty from tty command. However i have been unable to check the ouptput to see if 9 byte is equal to p
Any help will be appreciated. I am trying to avoid setting 50 users again
I have tried cut command, however i can not final result to a variable to evaluate.
I can use if tty >/dev/ttyo or check 9 byte of tty output.
Thanks