Hi,
Hope you guys can help me here. I made a shell script that will automatically telnet to our switches, execute some commands and then logout. All of the activities are recorded with the use of script and it is saved on another file. Everything is working fine when i run the shell script.
My problem is when i try to run it from my web based application (php) it prompts me to open the php file or doesn't run at all using another browser.
here is how the php file looks like:
<?
$test = system ("script -c ./test.sh");
?>
Hoping to hear from you guys, thanks in advance