This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
# wrapper to make passwd(1) be non-interactive | |
# username is passed as 1st arg, passwd as 2nd | |
set username [lindex $argv 0] | |
set password [lindex $argv 1] | |
set serverid [lindex $argv 2] | |
set newpassword [lindex $argv 3] | |
spawn ssh $serverid passwd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage="$(basename "$0") [-h] [-s n] -- program to calculate the answer to life, the universe and everything | |
where: | |
-h show this help text | |
-s set the seed value (default: 42)" | |
seed=42 |
NewerOlder