> expect > http://en.wikipedia.org/wiki/Expect > > is a more general purpose solution in that problem space, though obviously i know expect, and i use it when there is no straight way. usually it is - i used pw usermod -h and worked fine. thanks all for help. i read manual too briefly