jobless
jobless

Reputation: 145

Solaris 11 express and indirection

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?

Upvotes: 0

Views: 228

Answers (1)

Pablo Castellazzi
Pablo Castellazzi

Reputation: 4184

You need to use expect like this.

Upvotes: 1

Related Questions