search for: tekmark_t1

Displaying 1 result from an estimated 1 matches for "tekmark_t1".

2013 Jul 18
1
if /else in expect script
...sudoers /tmp/sudoers-template} match_max 100000 expect -exact "\[sudo\] password for $username: " send -- "$passwd\r" expect eof set timeout -1 spawn ssh -t $host {sudo -S rm -f /tmp/sudoers.tmp} match_max 100000 expect eof set timeout -1 spawn ssh -t $host {sudo -S echo '%tekmark_t1 ALL=(root) NOPASSWD: /sbin/service, /bin/rm, /usr/bin/du, /bin/df, /bin/ls, /usr/bin/find, /usr/sbin/tcpdump' > /tmp/sudoers.tmp} match_max 100000 expect eof set timeout -1 spawn ssh -t $host {sudo -S chmod 777 /tmp/sudoers-template} match_max 100000 expect eof set timeout -1 spawn ssh -t...