Search code examples
shellpasswordsstdinopensolaris

passwd command in shell script


I am making a shell script that automatically create users, but I cannot think of how to use passwd command within my shell script, how should I use it with shell script? --stdin option doesn't work for me


Solution

  • Try expect(1).