Find the answer to your Linux question:
Results 1 to 2 of 2
hello, I want to use cron to execute some php files., for which i had added a to /etc/crontab file the following line 52 6 1 * * root test ...
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    1

    cron job problem

    hello,

    I want to use cron to execute some php files., for which i had added a to /etc/crontab file the following line
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /home/.sites/proj//cron.monthly )

    where home/.sites/proj//cron.monthly file contain the executable and all associated files, executable some commands to run php files as,

    php /home/.sites/abdpro/html/cron.minute/test.php
    php /home/.sites/abdpro/html/cron.minute/cron_network_status.php
    php /home/.sites/abdpro/html/cron.minute/cron_network_status_lamperp_testing.php
    php /home/.sites/abdpro/html/cron.minute/cron_network_status_test_lamp.php
    php /home/.sites/abdpro/html/cron.minute/cron_network_status_release_lamp.php
    php /home/.sites/abdpro/html/cron.minute/cron_network_status_trig_lamp.php
    php /home/.sites/abdpro/html/cron.minute/cron_network_status_field_testing.php
    php /home/.sites/abdpro/html/cron.minute/block_employee.php
    php /home/.sites/abdpro/html/cron.minute/block_employee_lamperp.php
    php /home/.sites/abdpro/html/cron.minute/block_employee_test_release.php
    php /home/.sites/abdpro/html/cron.minute/roaming_duty_alert.php


    All working fine but some how my network is getting down. Is it a right way using cron. Is there any mistake in procedure i m using. Please help

    Thank you.

  2. #2
    Just Joined!
    Join Date
    May 2006
    Location
    Silver Spring, MD
    Posts
    32
    The cron job in and of itself cannot break your network, however, those php scripts could depending on what is happening inside them. There does not appear to be an issue with how you are calling cron, however, you might want to make sure your scripts are stepping on each other. Additionally, running all those network testing scripts at once may essentially be causing a self-induced denial of service attack.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •