Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jul 2010
CentOS - crontab command from .sh executed through php
Would anyone know why the following file will not work when executed with php?
#!/bin/sh crontab /home/dyluck/cron/mfd.txt echo 'CRONTAB HAS BEEN UPDATED' # end script
<? system('sh /home/dyluck/cron/mfd.sh',$rv);
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