[CLUE-Tech] Bash and password entry
Brandon N
bneill at yahoo.com
Sun Mar 24 13:58:54 MST 2002
What you probably want is "expect" Unfortunatly with that name it's a
little hard to search on it. I found the freshmeat entry:
http://freshmeat.net/projects/expect/?topic_id=45
Brandon
--- Matt Gushee <mgushee at havenrock.com> wrote:
> Hi, all--
>
> I was wondering how you can handle password entry in a shell script.
> I was thinking about writing a script that would synchronize certain
> directories on 2 hosts, using scp ... obviously it would be nice not
> to have to enter a password/passphrase for each file copied, but I
> don't know how (or if) I could store a password in a variable and
> reuse it.
>
> I now realize that for this particular problem the easiest and
> probably
> best solution is just to run the script in an ssh-agent session. But
> I've thought in the past about automating various tasks that involve
> passwords, and there isn't always a convenient password-preserving
> shell available. Is there a utility you can call from bash to handle
> passwords?
> --
> Matt Gushee
> Englewood, Colorado, USA
> mgushee at havenrock.com
> http://www.havenrock.com/
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
More information about the clue-tech
mailing list