2 # Batch EXecutor 3.0 -- List Machines and Groups
3 # (c) 2011-2012 Martin Mares <mj@ucw.cz>
14 ) && @ARGV == 0 or die <<AMEN ;
15 Usage: bex job [<options>]
21 my $machines = \%BEX::Config::machines;
24 for my $h (sort keys %$machines) {
25 my $m = $machines->{$h};
26 ref $m eq 'HASH' or next;
30 print "\n# Groups:\n";
31 for my $h (sort keys %$machines) {
32 my $m = $machines->{$h};
33 ref $m eq 'ARRAY' or next;
34 print "$h = ", join(" ",
36 my $x = $machines->{$_};
37 !defined($x) ? "$_?" :
38 ref $x eq 'HASH' ? $_ :
39 ref $x eq 'ARRAY' ? "\@$_" :