Hi. I am trying to run the /usr/sbin/postalias command using php giving it the options of hash:aliases so the command looks like:
/usr/sbin/postalias hash:aliases
I have tried using the popen() funtion but this seems not to do anything. I have it setup like this
$prog = popen("/usr/sbin/postalias hash:aliases" , "r");
$fclose($prog);
I know that the file permissions are correct for the aliases file. Any thoughts on how to do this differently or what I am doing wrong??
Thanks