I am writing script to change user from root to poletst
(another user ). When I change user server ask me among three areas from which I have to select by pressing 1,2 or 3
I am writing a shell script to automate some step and there is a step which involve changing user and selecting area 1 by default.
su - poletst
1
It is not working. It takes me to the user but doesn't change the area. How to perform this?