pass (389B)
1 #!/bin/rc 2 . 9.rc 3 4 echo Enter your last.fm login credentials. 5 echo -n Username: '' 6 username=`{read} 7 echo -n Password: '' 8 stty -echo 9 pass=`{read} 10 stty echo 11 12 9p read factotum/ctl >/dev/null >[2=1] || 9 factotum & 13 14 echo 'delkey dom=last.fm' | 9p write factotum/ctl >[2]/dev/null 15 echo 'key user='$"username' !password='$"pass' dom=last.fm proto=pass' | 9p write factotum/ctl >/dev/null >[2=1] 16