mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-22 03:00:29 +08:00
Use ps xww because w isn't wide enough on deb with long jenkins paths.
This commit is contained in:
@@ -823,7 +823,7 @@ sub get_cmd_pid {
|
||||
my $cmd = shift;
|
||||
$cmd =~ s/\./\\./g;
|
||||
$cmd =~ s/-/\\-/g;
|
||||
my $output = `ps wx | grep -v grep | grep '$cmd'`;
|
||||
my $output = `ps xww | grep -v grep | grep '$cmd'`;
|
||||
my @cmds = $output =~ m/\n/g;
|
||||
if ( @cmds > 1 ) {
|
||||
die "Found " . scalar @cmds . " commands matching '$cmd': @cmds";
|
||||
|
||||
Reference in New Issue
Block a user