Hi Helloise, 1. Create a file /home/rainbowcode/rainbowcode.sh as your script. 2. Change the permission to 755: $ chmod 755 /home/rainbowcode/rainbowcode.sh 3. Make sure that file contains the correct executable line complete with the argument, e.g.: #!/bin/sh /usr/bin/php /home/rainbowcode/DB-Query-Script.php rainbowcode yesterday mymailaddress 4. Test that command if it works the way you want: $ /home/rainbowcode/rainbowcode.sh 5. Edit the cron job using crontab command (you can forget the file /etc/cron.d/RC-Cron.txt): $ crontab -e 6. Make sure you enter proper cron command in the cron editor, e.g.: MAILTO=mymailaddress 5 8 * * * /home/rainbowcode/rainbowcode.sh
You may need to understand some vi command to use the default editor for crontab, otherwise you need to change the editor to something you're familiar with. And that's it! You should avoid executing cron script as root unless you really know what you're doing. Regards, Haris On 6 May 2011 17:08, Helloise Smit <helloi...@miranetworks.net> wrote: > i created RC-Cron.txt in /etc/cron.d folder i have these lines in there: > > MAILTO=mymailaddress > > #rainbowcode 5 8 * * * root /home/rainbowcode/DB-Query-Script.php > rainbowcode yesterday mymailaddress > > my cronjob is not running, i see from other examples the script it must run > is a .sh??? and can i save the cronjob as .txt?? > > can someone help me fix this please? thanks > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en