/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/0-host.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /recepies/ganeti/migrate-lxc/0-host.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 307 - (show annotations)
Sun Jan 12 14:50:13 2014 UTC (10 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 202 byte(s)
allow host=target_hostname script to execute single script on different host
1 export host_fqdn=rt.knjiznica.ffzg.hr
2 test -z "$host" && export host=`echo $host_fqdn | cut -d. -f1`
3 test -d $host || mkdir $host
4
5 ssh_host() {
6 log=`basename $1`
7 ssh root@$host $* | tee $host/$log
8 }
9

  ViewVC Help
Powered by ViewVC 1.1.26