Hi everybody. I have to clone a large number of machines, so i installed udpcast on the linux partition of my dual boot machines. I'd like, from the server, to do something like this:
for i in `seq 0 9`; do ssh machine$i "udp-receiver -f /dev/hda1"; done
to start on every machine the udp-receiver and clone the windows partition.
udp-receiver starts (i see it listening on port 9000), but when i start cloning it exits... I tried also putting the process in background, using nohup and using the option --nokbd, but nothing changes.
Anybody tried somthing like this before or have any idea of what's going wrong?
------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
You have to register udp-reciever as a service in /etc /rc.d/
There is usualy skeleton code in this directory that you can just replace the [service] with udp-reciever Then change your script to /etc/rc.d/yourscript start
Stephen Kaspersen Software Developer Spectrum Visual Networks A Top Technology 100 Company
----- Original Message ----- From: "sistemista windows/linux cosenz int.5834" matteo.balduzzi@cdc.polimi.it To: udpcast@udpcast.linux.lu Sent: Wednesday, September 15, 2004 8:51 AM Subject: [Udpcast] Udpcast and ssh
Hi everybody. I have to clone a large number of machines, so i installed udpcast on the linux partition of my dual boot machines. I'd like, from the server, to do something like this:
for i in `seq 0 9`; do ssh machine$i "udp-receiver -f /dev/hda1"; done
to start on every machine the udp-receiver and clone the windows partition.
udp-receiver starts (i see it listening on port 9000), but when i start cloning it exits... I tried also putting the process in background, using nohup and using the option --nokbd, but nothing changes.
Anybody tried somthing like this before or have any idea of what's going wrong?
This mail sent through IMP: http://horde.org/imp/
Udpcast mailing list Udpcast@udpcast.linux.lu http://udpcast.linux.lu/mailman/listinfo/udpcast
On Wednesday 15 September 2004 09:36, Stephen Kaspersen wrote:
You have to register udp-reciever as a service in /etc /rc.d/
There is usualy skeleton code in this directory that you can just replace the [service] with udp-reciever Then change your script to /etc/rc.d/yourscript start
Stephen Kaspersen Software Developer Spectrum Visual Networks A Top Technology 100 Company
I'm not sure what you're talking about here, but normally udpcast doesn't use any files in /etc , nor in /rc.d
Busybox does use files in /etc/, but for purposes not directly related to udpcast.
Regards,
Alain
----- Original Message ----- From: "sistemista windows/linux cosenz int.5834" matteo.balduzzi@cdc.polimi.it To: udpcast@udpcast.linux.lu Sent: Wednesday, September 15, 2004 8:51 AM Subject: [Udpcast] Udpcast and ssh
Hi everybody. I have to clone a large number of machines, so i installed udpcast on the linux partition of my dual boot machines. I'd like, from the server, to do something like this:
for i in `seq 0 9`; do ssh machine$i "udp-receiver -f /dev/hda1"; done
to start on every machine the udp-receiver and clone the windows partition.
udp-receiver starts (i see it listening on port 9000), but when i start cloning it exits... I tried also putting the process in background, using nohup and using the option --nokbd, but nothing changes.
Anybody tried somthing like this before or have any idea of what's going wrong?
This mail sent through IMP: http://horde.org/imp/
Udpcast mailing list Udpcast@udpcast.linux.lu http://udpcast.linux.lu/mailman/listinfo/udpcast
Udpcast mailing list Udpcast@udpcast.linux.lu http://udpcast.linux.lu/mailman/listinfo/udpcast
If he edits for example /etc/rc.d/skeleton in Suse 8.2 changes the line ' FOO_BIN=/usr/sbin/FOO ' to ' FOO_BIN="udp-receiver -f /dev/hda1 -nokbd" ' and saves the file as /etc/rc.d/udp-reciever
Then ssh in type : /etc/rc.d/udp-reciever start After exiting udp-reciever will be running as a service the same way one uses /etc/rc.d/xinetd start to allow ftp-ing to a server If udp-reciever was stopping because it was bound to a session this would no longer be the case I have tried it and it works
Stephen Kaspersen Software Developer Spectrum Visual Networks A Top Technology 100 Company
----- Original Message ----- From: "Alain Knaff" alain@knaff.lu To: udpcast@udpcast.linux.lu Cc: "Stephen Kaspersen" stephen@spectrumvns.com Sent: Wednesday, September 15, 2004 10:40 AM Subject: Re: [Udpcast] Udpcast and ssh
On Wednesday 15 September 2004 09:36, Stephen Kaspersen wrote:
You have to register udp-reciever as a service in /etc /rc.d/
There is usualy skeleton code in this directory that you can just
replace
the [service] with udp-reciever Then change your script to /etc/rc.d/yourscript start
Stephen Kaspersen Software Developer Spectrum Visual Networks A Top Technology 100 Company
I'm not sure what you're talking about here, but normally udpcast doesn't use any files in /etc , nor in /rc.d
Busybox does use files in /etc/, but for purposes not directly related to udpcast.
Regards,
Alain
----- Original Message ----- From: "sistemista windows/linux cosenz int.5834" matteo.balduzzi@cdc.polimi.it To: udpcast@udpcast.linux.lu Sent: Wednesday, September 15, 2004 8:51 AM Subject: [Udpcast] Udpcast and ssh
Hi everybody. I have to clone a large number of machines, so i installed udpcast on the linux partition of my dual boot machines. I'd like, from the server, to do something like this:
for i in `seq 0 9`; do ssh machine$i "udp-receiver -f /dev/hda1"; done
to start on every machine the udp-receiver and clone the windows partition.
udp-receiver starts (i see it listening on port 9000), but when i
start
cloning it exits... I tried also putting the process in background, using nohup and using the option --nokbd, but nothing changes.
Anybody tried somthing like this before or have any idea of what's
going
wrong?
This mail sent through IMP: http://horde.org/imp/
Udpcast mailing list Udpcast@udpcast.linux.lu http://udpcast.linux.lu/mailman/listinfo/udpcast
Udpcast mailing list Udpcast@udpcast.linux.lu http://udpcast.linux.lu/mailman/listinfo/udpcast
On Wednesday 15 September 2004 08:51, sistemista windows/linux cosenz int.5834 wrote:
Hi everybody. I have to clone a large number of machines, so i installed udpcast on the linux partition of my dual boot machines. I'd like, from the server, to do something like this:
for i in `seq 0 9`; do ssh machine$i "udp-receiver -f /dev/hda1"; done
^ I suppose your mean "&" here...
to start on every machine the udp-receiver and clone the windows partition.
udp-receiver starts (i see it listening on port 9000), but when i start cloning it exits... I tried also putting the process in background, using nohup and using the option --nokbd, but nothing changes.
Anybody tried somthing like this before or have any idea of what's going wrong?
I tried this myself on SuSE (using openssh version 3.8p1-33 and udpcast version 2004-05-31), and it worked (both with and without the --nokdb version).
What output or error message are you seeing when you try it? Did you confirm that it works when starting the same udpcast command locally on the target machine?
Regards,
Alain
On Wed, 15 Sep 2004 09:39:54 +0200 Alain Knaff alain@knaff.lu wrote:
Anybody tried somthing like this before or have any idea of what's going wrong?
I tried this myself on SuSE (using openssh version 3.8p1-33 and udpcast version 2004-05-31), and it worked (both with and without the --nokdb version).
If it works for you then probably is because i use the commercial version of ssh (3.2.9.1) on server and on clients...
What output or error message are you seeing when you try it? Did you confirm that it works when starting the same udpcast command locally on the target machine?
Yes, the same command works if executed locally. Beeing in a hurry i "resolved" with 39 xterms connected to the 39 clients, but i hope not having to do it again... ;-)
Regards,
Alain
Anyway, thank you all for your help Ciao, Matteo
Alain Knaff wrote:
On Wednesday 15 September 2004 08:51, sistemista windows/linux cosenz int.5834 wrote:
Hi everybody. I have to clone a large number of machines, so i installed udpcast on the linux partition of my dual boot machines. I'd like, from the server, to do something like this:
for i in `seq 0 9`; do ssh machine$i "udp-receiver -f /dev/hda1"; done
^ I suppose your mean "&" here...
Or use the -f option to ssh, which is imho a better solution. Although, you probably already make use of certicates for this, if you don't you would first need to type passwords and -f will wait untill you authenticated before backgrounding the ssh process.