ceph/branches/riccardo/monitor2/script/profonly.pl
riccardo80 07ac5d3e74 creating branch for distributed monitor
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1068 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 05:43:23 +00:00

13 lines
257 B
Perl
Executable File

#!/usr/bin/perl
my $rank = shift @ARGV;
my $args = join(' ',@ARGV);
if ($rank == $ENV{MPD_JRANK}) {
$c = "LD_PRELOAD=$ENV{'HOME'}/csl/obsd/src/pmds/gprof-helper.so ./newsyn $args";
} else {
$c = "./newsyn.nopg $args";
}
#print "$rank: $c\n";
system $c;