> Andre sent stuff on Expect which would solve the RSA problem
> but then I
> would have a user id and password in a script. I could protect that
> file to the user only I suppose. (Many thanks Andre)
Why does your expect script have to store user ID & password in a script?
Have you ever heard of autoexpect?
#!/usr/bin/expect -f
#
# This Expect script was generated by autoexpect on Mon Jul 9 17:27:27 2001
# Expect and autoexpect were both written by Don Libes, NIST.
set force_conservative 0 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
}
stty -echo
send_user "Enter usernamehere password: "
expect_user -re "(.*)\n"
set usernamehere_pwd $expect_out(1,string)
stty echo
set timeout -1
spawn ./passwordscripthere.sh
match_max 100000
Cheers
Peter