Depency: expect, sed, ssh
Amit csinal:
- Vegrehajtja a .commands fileban levo utasitasokat az elore beallitott serversetekben vagy azok egy reszeben.
- Ha vegzett otthagy neked egy interaktiv konzolt, ahol azt csinalsz amit akarsz, de ha 10 masodpercig nem nyulsz hozza akkor tovabblep a kovetkezo szerverre.
Ami kell hozza ha nem irod at, hanem a jelenlegi formajaban akarod hasznalni: sudo su - root jog az accountodra
[code]
#!/bin/bash
USAGE="USAGE: $0 (serverset1 {all|uat|prod} commandfile [defaults to .commands] |serverset2 {all|uat|prod} commandfile) \n
If your tool is an interactive program, please write IA in your commands file before the tool name ie: 'IA mcedit /tmp/whatever'
"