#!/usr/bin/expect set timeout 30 spawn sudo -E su expect "password" send "123456\n" expect "root@" send "source /home/123/.bashrc\n" interact
#!/usr/bin/expect set timeout 30 spawn sudo -E su expect "password" send "123456\n" expect "root@" send "source /home/123/.bashrc\n" interact