hostingclick Posted June 8, 2012 Share Posted June 8, 2012 Hello Everyone I have a cron job running for each night at 12 ish but if i ever want to do this manually one time for example - if i manually add 5 clients who are over due already and want to send out the invoices all in one go i can just do the cron job automatically and it will just send me a summary of the hosting for the day? I hope you understand, THank you Dave 0 Quote Link to comment Share on other sites More sharing options...
[JSH]John Posted June 8, 2012 Share Posted June 8, 2012 If you want to run the cron manually, you can simply run it via SSH. php -q /home/mylogin/public_html/secure/myfoldername/cron.php 0 Quote Link to comment Share on other sites More sharing options...
sibz Posted June 11, 2012 Share Posted June 11, 2012 (edited) Run the content from the cron job's script field in a shell. If your cron job is this (a sample): * * * * * php /home/foldername/my.php then run from the command-line the 'php /home/foldername/my.php' part. Note: some hosted servers would replace 'php /home/foldername/my.php' with something like '/ramdisk/home/foldername/php5 /home/foldername/my.php' or similar - this can be misleading. Hope that helps! Edited June 11, 2012 by WHMCS John Signature can be set in UserCP 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted June 11, 2012 Share Posted June 11, 2012 You'll want to disable the other cron options like updating the stats etc - details are in the wiki 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.