Re: [symfony-users] cronjob not working

2011-05-06 Thread Christophe COEVOET
Le 06/05/2011 15:58, Helloise Smit a écrit : i ran it like that and get no email i did check my path and it is correct what else can be wrong please? thank you You will only get a mail if the script executed by the cron outputs something. -- Christophe | Stof -- If you want to report a vuln

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
i ran it like that and get no email i did check my path and it is correct what else can be wrong please? thank you -- 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 Gro

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
hey watch it :-) :-) i have never worked in linux/ubuntu env before so all is still very new to me thanks for all the help! -- 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

Re: [symfony-users] cronjob not working

2011-05-06 Thread Haris Fauzi
Oh sorry, you were trying to execute it locally? Use: ./rainbowcode.sh instead of rainbowcode.sh # ./rainbowcode.sh Geez, you need a Linux tutorial man. :-) Regards, Haris On 6 May 2011 18:59, Helloise Smit wrote: > yes sorry that was in the cronjob i nuked... > i made a new file called rainbo

Re: [symfony-users] cronjob not working

2011-05-06 Thread Haris Fauzi
Hi Helloise, That's why in my previous example I put the full path of the script in the cron line command: 8 5 * * * /home/rainbowcode/rainbowcode.sh If you put only rainbowcode.sh: 8 5 * * * rainbowcode.sh The system would not find it because it's not in the default PATH environment variable. S

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
yes sorry that was in the cronjob i nuked... i made a new file called rainbowcode.sh and have these lines in rainbowcode.sh: #!/bin/sh /usr/bin/php /home/rainbowcode/DB-Query-Script.php rainbowcode yesterday helloi...@miranetworks.net NOW if i run the new cron: a12:/home/rainbowcode# rainbowcode.

Re: [symfony-users] cronjob not working

2011-05-06 Thread Gábor Fási
Not sure what you have in your crontab right now, but in your original post you have a 'root' between the time and the command, and that's causing the problem - remove it and you'll be fine. Keep in mind that the command is run as the user who's crontab it is in - guess you want to run it as root,

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
i understand nowi ran it and got an email that said: cron deamon: /bin/sh: root: not found -- 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

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
not to worry i understand now...thank you very much -- 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

Re: [symfony-users] cronjob not working

2011-05-06 Thread Haris Fauzi
The crontab? It doesn't matter. Name it as anything, the cron will read the content and discard your file anyway. On 6 May 2011 18:08, Helloise Smit wrote: > NOW: the above file what do i save it as please > After you enter those lines in crontab editor, save it using vi save > command: hit

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
NOW: the above file what do i save it as please After you enter those lines in crontab editor, save it using vi save command: hit Esc, then type :wq then enter. You may want to change '5 8 * * *' to the next available minute, e.g.: 0 18 * * * (in my timezone I'll reach 6pm in the next minute)

Re: [symfony-users] cronjob not working

2011-05-06 Thread Haris Fauzi
On 6 May 2011 17:52, Helloise Smit wrote: > yikes im not sure now: > > 1. must i keep my DB-Query-Script.php file? > Yes, keep your DB-Query-Script.php and you can dump the /etc/cron.d/RC-Cron.txt. > 2. i create ANOTHER file rainbowcode.sh which will contain the lines: > #!/bin/sh > /u

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
yikes im not sure now: 1. must i keep my DB-Query-Script.php file? 2. i create ANOTHER file rainbowcode.sh which will contain the lines: #!/bin/sh /usr/bin/php /home/rainbowcode/DB-Query-Script.php rainbowcode yesterday mymailaddress 3. THEN i do crontab -e and add the lines: MAILTO

Re: [symfony-users] cronjob not working

2011-05-06 Thread Helloise Smit
o ok thank you! ...i know the vi editor thanks will try it -- 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, se

Re: [symfony-users] cronjob not working

2011-05-06 Thread Haris Fauzi
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 /ho