Tag Info

Hot answers tagged

3

Cron is only run "once" at specific time or "every" minutes/hours. It doesn't check the return code. But a wrapper script CAN check the output. I suggest that you launch a "wrapper" to your script, then, the script will check itself for the presence of a file "/tmp/runcomplete", check for the run counter in another file, well, you get the idea. From my ...


2

You probably need to add the hashbang at the top of your script so the server knows where to find PHP to precess the script. Make sure the path to the PHP executable is correct for your server. #!/usr/bin/php -q <?php // *************************************************************************** //DOCUMENTATION FROM WEATHER.GOV ALL STORED IN ...


2

cron is your best bet if you want to run something periodically. If you just want to run a few shell commands (and depending on the security restrictions of your host) have a look at php's backtick operator and shell_exec function I have had success with phpshell and phpsh projects too.


2

Your shared hosting may give you access to cron jobs. (On cPanel hosting this may be under Advanced Tools.) Cron is a Unix command which runs a task at a specified time. You can create a cron job to run the task you want, if your shared hosting lets you. cPanel gives this warning though: You need to have knowledge of *nix commands before you can use ...


2

If you want to create backsups by simply copying files from one folder to another try rsyncbackup which is a perlscript that does easy backups with rsync http://code.google.com/p/rsync-backup/ You can set a cronjob to execute the script


2

Depends on the amount of data. If: No large/weird/complex queries No large datasets Rowlocking (innoDB) instead of tablelocking (MyISAM) No absurt amount of users/pagehits Then you have no problem at all. Just make sure you index the right columns, and cleanup what you can so you dont get redundent data. If you're not sure when you should consider ...


2

Is the cronjob supposed to access a web location via HTTP in order to make it execute instead of not directly executing it with the PHP executable? Shouldn't it be something like: */10 * * * * wget -O /dev/null --no-check-certificate https://example.com/path/file.php Also, --no-check-certificate is a switch of wget, not php.


1

Also, when you check the cron jobs for every user, check the first few characters in each line of the cron file. If the first set of characters start with either "0 0" or "00 00" or two sets of zeros in any form, then it means midnight. The later numbers help define how many midnights the task is supposed to happen. so if the remaining characters are ...


1

Check that the $PATH is the same for both 'crontab' and the terminal. (If not, change it).


1

Put the following into your crontab file @reboot screen -d -m -S mcscreen @reboot mono /home/admin/vivalaminecraft.com/McMyAdmin.exe Crontabs run through in order from top to bottom, so if things have the exact same time or parameter the top one will run first. I don't know if mcscreen is a file inside vivilaminecraft.com but if it is then include the ...


1

I would suggest contacting their customer support or looking into the Knowledge Base. Both are excellent at Media Temple. For example: http://kb.mediatemple.net/questions/82/Using+Cron+on+a+%28dv%29+Dedicated+Virtual+Server :-)


1

Check out this guide for Crontab Syntax and this tutorial to disable crontab mail (there are a couple of options in the tutorial to disable cron from emailing you the script output).


1

Based on the screenshot that you posted, you just need to know the correct path of the command that you are trying to run. It's possible that you just need to remove the leading '/' from your command and the path that you specify after -app. This assumes that your host sets up the cronjob to run as your user and that your public_html directory has its root ...



Only top voted, non community-wiki answers of a minimum length are eligible