Displaying 1 result from an estimated 1 matches for "nconfirm".
Did you mean:
confirm
2009 May 01
2
Automating the Samba Install
...n /usr/bin/net $netargs
expect -re "(^.*)$"
sleep 10
send "$MYPASSWD\r"
puts "\n\tJust slept and sent password, but don't get response Password:
until after this puts statement\n\tIs the spawn not handling quotes and
backslash correctly?"
expect eof
puts "\nconfirm if rights grant worked, note there are no quotes or
backslash in this rpc rights command\n"
spawn /usr/bin/net rpc rights list accounts -S smbsrv -U root
expect -re "(^.*)$"
sleep 2
send "$MYPASSWD\r"
expect eof
---
Save the script as e1.exp, chmod 755 e1.exp, invoke as ....