We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

cron help please | Forum

Topic location: Forum home » Support » General Questions
bobby
bobby Oct 22 '12
   cron job my path or command
php /home/monacowe/public_html/social/ow_cron/run.php

this is what i get in my email

Set-Cookie: base_language_id=1; expires=Wed, 21-Nov-2012 22:00:03 GMT; path=/
Content-type: text/html


Alia Team
Alia Oct 23 '12
Bobby,

1. your cron job is not correct it should be either :
/usr/bin/php -f /home/monacowe/public_html/social/ow_cron/run.php
OR
 /usr/local/bin/php -f /home/monacowe/public_html/social/ow_cron/run.php

You can find which one by running "which php" command in SSH.

2. Regarding email, I didn't understand when you are getting this email. Can you give more info about this?

bobby
bobby Oct 23 '12
You can have cron send an email everytime it runs a command


You can find which one by running "which php" command in SSH.  how do i do that
The Forum post is edited by bobby Oct 23 '12
Alia Team
Alia Oct 23 '12
>>You can find which one by running "which php" command in SSH.  how do i do that

You can find instructions here: http://docs.oxwall.org/install:cron
bobby
bobby Oct 23 '12
i read that 20 times already

<style>
                .ow_debug_cont{padding:15px 0;width:80%;margin:0 auto;}
                .ow_debug_body{background:#

fff;border:4px double;padding:5px;}
                .ow_debug_cap{font:bold 13px Tahoma;color:#fff;padding:5px;border:1px solid #000;width:250px;margin-top:-20px;}
                .ow_debug_body .notice{background:#fdf403;color:#555;}
                .ow_debug_body .warning{background:#f8b423;color:#555;}
                .ow_debug_body .error{background:#c10505;color:#fff;}
                .ow_debug_body .exception{background:#093dd3;color:#fff;}
                .ow_debug_body .vardump{background:#333;color:#fff;}
                .vardumper .string{color:green}
                .vardumper .null{color:blue}
                .vardumper .array{color:blue}
            .vardumper .bool{color:blue}
                .vardumper .property{color:brown}
                .vardumper .number{color:red}
            .vardumper .class{color:black;}
            .vardumper .class_prop{color:brown;}
        </style>

                <div class="ow_debug_cont">
                        <div class="ow_debug_body">
                                <div class="ow_debug_cap warning">OW Debug - Warning</div>
                                <table>
                                        <tr>
                                                <td class="lbl">Message:</td>
                                                <td class="cnt">copy(/home/monaco/public_html/social/ow_static/themes/graphite/theme.jpg) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory</td>
                                        </tr>
                                        <tr>
                                                <td class="lbl">File:</td>
                                                <td class="cnt">/home/monaco/public_html/social/ow_system_plugins/base/bol/theme_service.php</td>
                                        </tr>
                                        <tr>
                                                <td class="lbl">Line:</td>
                                                <td class="cnt">334</td>
                                        </tr>

                                </table>
                        </div>
                </div>

        <style>
                .ow_debug_cont{padding:15px 0;width:80%;margin:0 auto;}
                .ow_debug_body{background:#fff;border:4px double;padding:5px;}
                .ow_debug_cap{font:bold 13px Tahoma;color:#fff;padding:5px;border:1px solid #000;width:250px;margin-top:-20px;}
                .ow_debug_body .notice{background:#fdf403;color:#555;}
                .ow_debug_body .warning{background:#f8b423;color:#555;}
                .ow_debug_body .error{background:#c10505;color:#fff;}
                .ow_debug_body .exception{background:#093dd3;color:#fff;}
                .ow_debug_body .vardump{background:#333;color:#fff;}
                .vardumper .string{color:green}
                .vardumper .null{color:blue}
                .vardumper .array{color:blue}
            .vardumper .bool{color:blue}
                .vardumper .property{color:brown}
                .vardumper .number{color:red}
            .vardumper .class{color:black;}
            .vardumper .class_prop{color:brown;}
        </style>

                <div class="ow_debug_cont">
                        <div class="ow_debug_body">
                                <div class="ow_debug_cap warning">OW Debug - Warning</div>
                                <table>
                                        <tr>
                                                <td class="lbl">Message:</td>
                                                <td class="cnt">copy(/home/monaco/public_html/social/ow_static/themes/graphite/base.css) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory</td>
                                        </tr>
                                        <tr>
                                                <td class="lbl">File:</td>
                                                <td class="cnt">/home/monaco/public_html/social/ow_system_plugins/base/bol/theme_service.php</td>
                                        </tr>
                                        <tr>
                                                <td class="lbl">Line:</td>
                                                <td class="cnt">341</td>
                                        </tr>

                                </table>
                        </div>
                </div>


am i doing something wrong
 

Alia Team
Alia Oct 24 '12
Bobby,

>>i read that 20 times already

Were you able to get the right command via SSH? The link I gave provides detailed instructions on how you can do that.

>>copy(/home/monaco/public_html/social/ow_static/themes/graphite/base.css) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory

This issues is not connected to CRON settings.
Let's keep this topic about CRON set up only to avoid confusion.
Feel free to create separate topics for any other issues you face. Thank you.