Fixing regex expression get_pid
authorLuiz K. Matsumura <luiz.matsumura@gmail.com>
Fri, 26 Oct 2012 11:14:46 +0000 (09:14 -0200)
committerLuiz K. Matsumura <luiz.matsumura@gmail.com>
Thu, 8 Nov 2012 22:03:25 +0000 (20:03 -0200)
tools/altperl/slon-tools.pm

index c7a6e06c91d22164d3cad16930361fae5ae9e4b0..c98d203a60a5152fd26e14d9c8d0a39bdf985043 100644 (file)
@@ -134,7 +134,7 @@ sub get_pid {
   #  print "Searching for PID for $dbname on port $dbport\n";
   if ($config) {
     my $config_regexp = quotemeta( $config );
-    $command =  ps_args() . "| egrep \"[s]lon -f $config_regexp \" | sort -n | awk '{print \$2}'";
+    $command =  ps_args() . "| egrep \"[s]lon -f $config_regexp\" | sort -n | awk '{print \$2}'";
   } else {
     $dsn = quotemeta($dsn);
     $command =  ps_args() . "| egrep \"[s]lon .* $CLUSTER_NAME \" | egrep \"$dsn\" | sort -n | awk '{print \$2}'";