Bash shell help
der.hans
plug-devel@lists.PLUG.phoenix.az.us
Thu Apr 24 23:30:03 2003
Am 24. Apr, 2003 schw=E4tzte Carl Parrish so:
> in a bash shell how do you just "hit enter?" I've got a script that's
> supposed to enter a password. In this case I've already used ssh2 and a
> keygen so I don't need to enter a passwd I just need to "enter" a blank.
> I can pass a password to the cmd line just fine. And maybe its because I
> haven't sleeped in 28 hours but I can't remember how to do *just* send a
> blank line.
Carl,
you might need to go to expect or perl. zsh should be able to do it, I don'=
t
know if bash has snarfed up that functionality.
OTOH, if you have root on the destination allow the user to run the command
via sudo if that's something for which it would work.
ciao,
der.hans
--=20
# https://www.LuftHans.com/ http://www.TOLISGroup.com/
# A t-shirt a day keeps the noose (tie) away. - der.hans