IN shell scripting I am using as : sudo login $user && echo 'yes'and expecting yes as output.But its not as per expectation.****Actually my task is to automate login command to test in Linux.****
how to test login command in unix using shell script?
shell script;login