I want to run the pbrun command to login and remove some files in the server but when using the below command pbrun command asking password, is there any way we can pass password also?
#!/usr/bin/expect -f
pbrun ehuid
expect -exact "Password: "
send -- "password"
expect {\$\s*} { interact }
the above script not working and expect key not found issue coming