Cronjob for running a php script intermittently? Programming Software Development by sarasara … a workaround, I'm looking for some type of a cronjob that can just kill the script after every 30 minutes… greatly appreciated. Thanks! Basically this is what I need the cronjob to accomplish 1) start running the script 2) kill the… Cronjob is running once, but reports are generating twice Hardware and Software Linux and Unix by whizkidash … details from Database which is in a different server.These cronjob are run on every hourly/5 minutes basis depending as… Red Hat Enterprise Linux Server release 6.6 where the cronjob is set Now the tricky point: 1)Since last week… Re: cronjob problem in the script Programming Software Development by larryperl …- can nayone please suggestt me how i can implement the cronjob part inside a script like it is mentioned in the… giveme me some clues also. please explain me how the cronjob part can be implemented inside a script.i just want… Re: Cronjob is running once, but reports are generating twice Hardware and Software Linux and Unix by Dani Are you sure you accidentally aren't running the cronjob from multiple users on the server? Two users might have the same crontab file accidentally. Just a thought? cronjob in PHP ? Programming Web Development by nn_future What is "cronjob" in PHP ? Re: cronjob in PHP ? Programming Web Development by vscapes [QUOTE=nn_future]What is "cronjob" in PHP ?[/QUOTE] That is a php file that is automatically executed by the server at designated intervals. It can be used for many purposes such as deleting listings that are old, updating calenders, etc... cronjob problem in the script Programming Software Development by larryperl … i modify this so that it will pick up the cronjob and run when the time is specified. Re: cronjob problem in the script Programming Software Development by larryperl … is taking the backup but not at the specified time.Cronjob part is not working properly.i guess i need to… Re: cronjob problem in the script Programming Software Development by larryperl Yes that is an option, but It is required in the script which i ned to write. I have to do the cronjob part inside the script itself. Cronjob for modify table content (replace) Programming Databases by RobotFX … I cannot do this every day and I need a cronjob to do it. I don't know if is possible… Re: Cronjob for modify table content (replace) Programming Databases by RobotFX Doesn't help, either. I've tried to eliminate some rows but there always something wrong. Is there a way to make the cronjob skip to the next command in the .sql file, if something is wrong with one line? Now I think the cron does nothing, but if is something wrong with one of the UPDATE commands, at least skip to the next one.... Re: Cronjob for modify table content (replace) Programming Databases by pritaeas You can use a php file as your cronjob, in which you execute each sql statement separately, and ignore any errors (or a loop reading line by line from your file). Re: Time or cronjob Programming Software Development by pbl cronjob is Unix related java System.currentTimeMillis(); will give you the actual time in millis realtime query without cronjob Programming Web Development by forzadraco how to copyng data from another database postgre to mySQL database without cronjob with realtime... php can do it..? thanks realtime query without cronjob Programming Databases by forzadraco how to copyng data from another database postgre to mySQL database without cronjob with realtime... thanks Daily save (cronjob) web address as HTML, and store by date Programming Software Development by RobotFX …. I'm thimking maybe a simple script, runned by a cronjob, daily, but couldn't find any. Thank you! Time or cronjob Programming Software Development by newbie14 Dear All, I am using an adapted code from the web for sending sms via gsm modem. Now I would like to modify to read sms message from database table and send it.So I would like to programme it to read on every 30 second from the db process and send the message. What will be best method is it timer or cronjob? Thank you. Re: Cronjob for running a php script intermittently? Programming Software Development by sknake When you execute the script write out a PID file. Cron the script to run every 30 minutes and kill itself. You should be able to modify this code to suit your needs: [code=php] class pid { protected $filename; public $already_running = false; function __construct($directory) { $this->filename = $… Re: Cronjob for running a php script intermittently? Programming Software Development by sarasara thanks for the reply. Hope I could make sense of all the code. Way too much code for a total non-programmer such as me! anyway...the problem is solved...i got a friend to look at it and he gave me a solution that involves running the script as a separate screen and then doing killall screen every 20 mins...worked perfectly! Re: Cronjob for running a php script intermittently? Programming Software Development by sknake Thanks for posting your solution back here. Please mark this thread as solved if you have found an answer to your question and good luck! Re: Cronjob is running once, but reports are generating twice Hardware and Software Linux and Unix by whizkidash No Dani, its from a single user only. Re: Cronjob is running once, but reports are generating twice Hardware and Software Linux and Unix by Dani I see you marked this thread as solved. Were you able to figure out the problem? What was it? Re: cronjob problem in the script Programming Software Development by DimaYasny so without the "WhenToRun" setting, the script just works? Re: cronjob problem in the script Programming Software Development by DimaYasny why don't you just run the crontab command to add the script to the cron joblist? why do you need the script to add itself? Re: cronjob problem in the script Programming Software Development by DimaYasny I would create a second script that would handle the crontab insertion, and call that from within this script. not so sure about bash, but crontabbing a script from that same script is a bit too recursive for me :) Re: cronjob problem in the script Programming Software Development by larryperl I appericiate your help.I wil wait for your response. Re: cronjob problem in the script Programming Software Development by larryperl Hi Dima, did you write the script that will help me in this regard. Re: cronjob problem in the script Programming Software Development by DimaYasny I said I WOULD create a script, not that i WILL write it for you Re: cronjob problem in the script Programming Software Development by larryperl [QUOTE=DimaYasny;522365]I said I WOULD create a script, not that i WILL write it for you[/QUOTE] No Problem Dima,i appericiate your help.You mean to say you will help me in rectifying the script right.That is also fine to me. Re: cronjob problem in the script Programming Software Development by DimaYasny there is nothing to rectify there if the script works. what I suggested for you to try, is to take the cron insertion function out of the backup script and create a second script - CronInsert.sh, that would take the backup script and would put it into crontab