Execute command

Answer command's questions by a command in PHP

  • When you use php to execute a command, the command has required you answer single question for complete the process.
    echo 'answer' | command
  • When you use php to execute a command, the command has required you answer multi questions for complete the process. Uses "\n" to separate each answer.
    printf 'answer1\nanswer2\nanswer3' | command
Subscribe to RSS - Execute command