I have php script on my redhat that im logging in as root via telnet client.
My PHP script to run the bash script is(functions.inc):
<?php
exec('/ilantest/testscript.sh');
?>
My Bash script:
#!/bin/bash
echo "Hello world"
echo "Whats going on ?"
And when i do: php functions.inc - I get the following:
Whats going on ?[root@X ilantest]#
Why i dont see the first line ?
Thanks !