Posts

Showing posts with the label cron

Create cronjob with Zend Framework

Create cronjob with Zend Framework I am trying to write a cronjob controller, so I can call one website and have all modules cronjob.php executed. Now my problem is how do I do that? Would curl be an option, so I also can count the errors and successes? [Update] I guess I have not explained it enough. What I want to do is have one file which I can call like from http://server/cronjob and then make it execute every /application/modules/*/controller/CronjobController.php or have another way of doing it so all the cronjobs aren't at one place but at the same place the module is located. This would offer me the advantage, that if a module does not exist it does not try to run its cronjob. Now my question is how would you execute all the modules CronjobController or would you do it a completly different way so it still stays modular? And I want to be able to giveout how many cronjobs ran successfully and how many didn't 13 Answers ...

cron job error : “sqoop command not found”

cron job error : “sqoop command not found” After installing sqoop successfully, i wrote a script "sqoop.sh" and kept in another folder. In terminal, I am able to execute sqoop script by giving command ./sqoop.sh . It works fine. Now when i try to add a cronjob of this, error message "sqoop command not found". ./sqoop.sh Here is sample - 45 * * * * /home/user/Desktop/hadoop/sqoop/sqoop_script/sqoop.sh 1 Answer 1 You can add the location of Sqoop's bin directory to the PATH . For example, when using bash shell, you can add these lines to the .bash_profile . bin PATH bash .bash_profile export SQOOP_HOME=/usr/hdp/current/sqoop-client export PATH=$PATH:$SQOOP_HOME/bin Hi, bashrc file is already updated with SQOOP_HOME and PATH. When i am @ terminal -> user@abc:~$ sqoop help it works fine. its just when i put the command in sqoop script and script...

i do not know if this cron is true or not. I want to make backup database every two months, respectively [on hold]

i do not know if this cron is true or not. I want to make backup database every two months, respectively [on hold] This question appears to be off-topic. The users who voted to close gave this specific reason: Well, have you tried the cron ? Why is it not working for you ? – Dvorog Jul 1 at 10:20 cron Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. – jww Jul 1 at 13:36 1 Answer ...