Jump to content

Manual Cron job?


hostingclick

Recommended Posts

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

Link to comment
Share on other sites

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 by WHMCS John
Signature can be set in UserCP
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated