Hehe, yeah, it does feel like swearing =)
That solution works, as long as the network behaves PERFECTLY and
you've allready configured the server to use your SSH key instead of a
password. Expect, by its nature, waits until the right time to say
things
Sample pexpect code:
- Code
gavino wrote:
This seems easy but I have been asking tcl and python IRC chat all day
and no one gave an answer.
I have 100 servers which need a new backup server added to a text file,
and then the backup agent restarted.
If I have a list of the servers, all with same root password, and the
g This seems easy but I have been asking tcl and python IRC chat all day
g and no one gave an answer.
g I have 100 servers which need a new backup server added to a text file,
g and then the backup agent restarted.
g If I have a list of the servers, all with same root password, and the
g
Ove Pettersen [EMAIL PROTECTED] wrote:
for server in server1 server2 server3 server100; do
Two comments:
1. Leave out the quotes(!)
2. Either iterate as
for server in $(seq -fserver%g 100); do
or, probably better
for server in $(cat server-list); do
--
This seems easy but I have been asking tcl and python IRC chat all day
and no one gave an answer.
I have 100 servers which need a new backup server added to a text file,
and then the backup agent restarted.
If I have a list of the servers, all with same root password, and the
connection is ssh.
gavino wrote:
This seems easy but I have been asking tcl and python IRC chat all day
and no one gave an answer.
I have 100 servers which need a new backup server added to a text file,
and then the backup agent restarted.
If I have a list of the servers, all with same root password, and the
Does this require a ssh client or server?
I use authpf to open up my PF firewall for internet use. Generally I just
open up putty and make a connection to the FW ( which open the ports) and
minize it till I am done. When I close putty authpf losses the ssh session
heartbeat and will then
list of servers L.txt
#cat L.txt
config file is /var/bkupexec/agent.cfg need to add tell epobackup to
bottom of file
# cat tell epobackup /var/bkupexec/agent.cfg
agent is /etc/init.d/agent.ini stop (and then start)
# /etc/init.d/agent.init stop
# /etc/init.d/agent.init start
os=redhat ent 4ES
I
LittlePython wrote:
Does this require a ssh client or server?
I use authpf to open up my PF firewall for internet use. Generally I just
open up putty and make a connection to the FW ( which open the ports) and
minize it till I am done. When I close putty authpf losses the ssh session
thx,
Ravi Teja [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
LittlePython wrote:
Does this require a ssh client or server?
I use authpf to open up my PF firewall for internet use. Generally I
just
open up putty and make a connection to the FW ( which open the ports)
and
gavino wrote:
list of servers L.txt
#cat L.txt
config file is /var/bkupexec/agent.cfg need to add tell epobackup to
bottom of file
# cat tell epobackup /var/bkupexec/agent.cfg
agent is /etc/init.d/agent.ini stop (and then start)
# /etc/init.d/agent.init stop
# /etc/init.d/agent.init
I would sugest looking at http://pexpect.sourceforge.net/ The Expect
metalanguage was specifically designed for the kind of things you are
trying to do. I used it recently on a project to configure 25
instances of an application, remotly, half over ssh half over telnet.
--
gavino [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
This seems easy but I have been asking tcl and python IRC chat all day
and no one gave an answer.
I have 100 servers which need a new backup server added to a text file,
and then the backup agent restarted.
If I have a list of
* gavino (2006-07-01 11:34 +)
This seems easy but I have been asking tcl and python IRC chat all day
and no one gave an answer.
I have 100 servers which need a new backup server added to a text file,
and then the backup agent restarted.
If I have a list of the servers, all with same root
14 matches
Mail list logo