NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
PatrikL
Oct 12, 2011Aspirant
Not getting cron to work
I've tried to get a script (importing torrent files from rss) executed once an hour by simply placing it in cron.hourly but nothing whatsoever happens. The script executes well manually when I'm logge...
PatrikL
Oct 13, 2011Aspirant
sphardy wrote: 2. They will be run under a standard bourne shell (/bin/sh) so be sure that your script runs fine under that (standard login shell for the root user is bash, not bourne shell)
And that is the reason! I havent solved it yet but running it using /bin/sh gives me plenty or errors. It seems to be the case that the line telling it my script is python isnt correct.
My script starts with:
#!/usr/bin/python
import feedparser
import urllib2
import time
import datetime
And the first error I am getting is that "import" on line 2 isnt recoqnized. I'll google around a bit to see how to change it unless you know by heart?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!