Hi there,

Would anyone know why the following file will not work when executed with php?

mfd.sh
Code:
#!/bin/sh
crontab /home/dyluck/cron/mfd.txt
echo 'CRONTAB HAS BEEN UPDATED'
# end script
cronmfd.php
PHP Code:
<? system('sh /home/dyluck/cron/mfd.sh',$rv);
echo 
$rv;
?>
If I run mfd.sh from SSH : sh /home/dyluck/cron/mfd.sh
it works find and updates crontab with the valuse in mfd.txt

if I run the cronmfd.php, nothing happens except the echo command.

Hopefully someone knows why this isn't working

Thanks in adance