Subversion Repositories sysadmin_scripts

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
117 rodolico 1
#! /usr/bin/env perl
2
 
3
use strict;
4
use warnings;
5
use Data::Dumper;
6
 
7
my $virtual = shift;
8
 
9
die `virsh list --inactive` unless $virtual;
10
 
11
my @temp = `findVirtuals.pl -s | grep $virtual`;
12
chomp @temp;
13
my %running = split( "\t", @temp );
14
 
15
die "$virtual already running on $running{$virtual}\n" if $running{$virtual};
16
 
17
print "I would start $virtual here\n";
18
 
19
1;