elsif ($args{command} eq "Get-Listener-Pid") { if ($args{listenername} ne "") { $command= Command->new(command => "ps -ef | grep " . $args{listenername} . " | grep -v grep | awk \'{print \$2}\'", remotecommand => "false"); } else { $command= Command->new(command => "ps -ef | grep LISTENER | grep -v grep | awk \'{print \$2}\'", remotecommand => "false"); } }