patrickk wrote:
> I just tried to set up a cronjob with plesk and I got this error:
> 
> from: can't read /var/mail/django.core.management
> /var/www/vhosts/mydomain.at/www/scripts/cronjobs/mail_editors.py: line
> 4: import: command not found
> /var/www/vhosts/mydomain.at/www/scripts/cronjobs/mail_editors.py: line
> 5: syntax error near unexpected token `settings'
> /var/www/vhosts/mydomain.at/www/scripts/cronjobs/mail_editors.py: line
> 5: `setup_environ(settings)'
> 
> Here´s the test-script:
> 
> # coding: utf-8

You're missing the shebang line:

#!/usr/bin/python

-- 
Christian Joergensen | Linux, programming or web consultancy
http://www.razor.dk  |     Visit us at: http://www.gmta.info

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to