suuser.sh
#!/bin/bash # This is our first script. echo 'su user[root]!' expect -c " spawn su - root expect \":\" send \"Ardo@123!\r\" interact " echo "ok!"
suuser.sh
#!/bin/bash # This is our first script. echo 'su user[root]!' expect -c " spawn su - root expect \":\" send \"Ardo@123!\r\" interact " echo "ok!"