i am trying to execute unix command in php script like this.
<?php
echo shell_exec('head -n 1 log_list_23072014|awk -F ',' '{print $2}'');
?>
This is the file , trying to get the first column of the first row.
NODE,CGR,TERMID,VMGW,ET
but the error message i am getting
Parse error: syntax error, unexpected 'shell_exec' (T_STRING), expecting ',' or ';'.
cant able to find please help.