How to make a shell file create a page in php

1

I would like to do a MIB (Management Information Base), which is created, and I have to create the manager and the agent. I'm using shell to do this, in the agent I have to create a page in PHP , to display the information of the MIB , could someone help me?

I use the bash interpreter.

    
asked by anonymous 05.05.2018 / 15:00

1 answer

0

something like

#!/bin/bash

cat << EOF > /var/www/html/teste.php
<?php
  echo "Funcionou?";
?>
EOF

should work.

    
05.05.2018 / 20:27