Skip to content

Commit

Permalink
Improved php-fpm sniff
Browse files Browse the repository at this point in the history
  • Loading branch information
mblaschke committed Aug 19, 2015
1 parent 9bece3c commit abd660a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/CliTools/Console/Command/Docker/SniffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,8 @@ public function execute(InputInterface $input, OutputInterface $output)
// ##############
case 'php-fpm':
$output->writeln('<p>Using protocol "php-fpm"</p>');
$command->setCommand('tcpdump');
$command->addArgumentRaw('-nl -s0 -w- port 9000');

$pipeCommand = new CommandBuilder('strings', '-a');

$command->addPipeCommand($pipeCommand);
$command->setCommand('ngrep');
$command->addArgumentRaw('port 9000 -W byline');
break;

// ##############
Expand Down

0 comments on commit abd660a

Please sign in to comment.