0

I am trying to use bash indirection in Solaris 11 express to change the password for a user. The code I am using is

$ passwd testuser << MARKER
> testpassword
> testpassword
> MARKER

When I run this, I still get prompted for a password on the console. The same code works on Ubuntu 10.04.

I tried to run the same thing in bash, sh with same results. Is there something Solaris specific that I need to be doing?

4

1 回答 1

1

你需要像这样使用期望

于 2011-07-12T23:22:42.693 回答