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

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


1

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.


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