WebFaction
Community site: login faq

Hi,

I've created the following cronjob to run every 5 minutes, but for some reason it doesn't.

*/05 * * * * ~/webapps/django/shop/update

When I try to run the script from the shell, it runs perfectly. Any ideas as to what could be wrong?

Thanks.

asked 19 May '11, 02:42

iman453
491527
accept rate: 0%

edited 19 May '11, 02:49

ryans ♦♦
5.0k93360


I believe the issue is that one cannot use tilde notation in a cronjob.

Please try replacing this with:

*/5 * * * * /home/username/webapps/django/shop/update

Where "username" is your username.

permanent link

answered 19 May '11, 02:50

ryans ♦♦
5.0k93360
accept rate: 43%

Thank you for your reply :) I tried replacing the tilde, but there still seems to be some problem.

(19 May '11, 02:58) iman453
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×81
×50

question asked: 19 May '11, 02:42

question was seen: 3,999 times

last updated: 19 May '11, 02:58

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM