I am executing a command through script in remote server which is of non-interactive mode. I've gone through the link and found the below errror is because of running stty in non-interactive mode.[URL="http://compgroups.net/comp.unix.shell/stty-invalid-argument-using-ssh/506594"]http://compgroups.net/comp.unix.shell/stty-invalid-argument-using-ssh/506594[/URL]
stty -echo
useradd <useraname> -m <password>
stty echo
stty is used not to show passwords in terminal. But i am getting stty: standard input: Invalid argument as in output.
How to get rid of/overcome this error in my output.