Quote:
Originally Posted by tom_xx_hu@yahoo
Asking user's confirmation of accepting a key is the security feature. I don't know whether it is a good idea or not to automatically pass through it without intervention. The good thing about unix is, especially combined with business application, none and nothing is hundred percent absolutely right or wrong. It all depends on scenario. That said, have you thought about using expect? Expect can do such thing as detecting prompts on the screen and feeding corresponding response (string/characters).
Many thanks for your answer Tom.
I won't even go so far to ask for automatically bypassing the security and *definitely* I'm not going to write passwords into shellscripts, as I would have to using expect.
What I would like to have is a mechanism, which would work in case the keys are exchanged and come up with an error if they are not. I have no problem with failing scripts, i have a problem with scripts hung indefinitely.
My goal is achieving something like this:
# dsh.ksh "date"
foomachine: Thu Jun 2 09:30:04 MSZ 2005
barmachine: Thu Jun 2 09:30:04 MSZ 2005
3rdmachine: ***failed to connect***
4thmachine: Thu Jun 2 09:30:04 MSZ 2005
...
The problem (speaking generally) is that most of the modern tools are designed only with interactive use in mind but can't be used in scripts. I really *like* graphic gimmicks, but they don't help anything if your goal is to automatically get something done every day at 3 am.
bakunin