InvoiceBerry Blog

Small Business | Invoicing | Marketing | Entrepreneurship | Freelancing

Run PHP scripts automatically with Cron Jobs (Crontab) and Debian

Written by on October 04, 2011

1. Log into your SSH.

2. Download Lynx (if you do not already have it):
$ apt-get install lynx

Try our online invoicing software for free

Send professional-looking invoices
Accept online payments with ease
Keep track of who's paid you

Start sending invoices

3. Edit your cron jobs file:
$ crontab -e

4. Type the path of your PHP script you want to run into the file:
* * * * * lynx -dump
Info: The five stars are for the minute, hour, day, week and month you want to run the script.
E.g. in our example the script is executed once every minute on every day and every week and month of the year.
If you want to run the script every day at 7:30AM you have to change it into:
30 7 * * * lynx -dump

5. Save and exit the editor.

6. Done!

Invoicing doesn't have to be scary


Ready to start invoicing your clients with InvoiceBerry?

Sign up to our free trial account. No credit card required.

Sign Up Now
Read previous post:
How to disable the mail alert when running cron jobs (crontab)

By default you will always receive an email to your local email account whenever a cron job either does not...

We use cookies to give you a better experience. Check out our privacy policy for more information.