Score:0

crontab issues :x

kp flag

so I have a scrapy script that I'm trying to execute on digitalocean droplet/ubuntu vm.

So, after installing/updating ubuntu, I created a test.py and then executed it using crontab and it worked fine.

I then installed scrapy using pip3. Then I cloned my scrapy script to ubuntu from github, and executed it manually and it worked exactly as it did on my local machine.

Next step I created crontab and it failed. I checked scrapy path and tried again, but it failed. I looked up online and created a getdata.sh with scrapy script execution and path. And, then called it in crontab. But it failed on this as well.

I am not a linux guy, and I have not much idea what is going on behind the scene. I did use grep to see log, and it shows no MTA installed, discarding output.

So - can you please help? I can share screen shots if that helps.

hr flag
If you don't have an MTA installed, then capture the output/errors to a log file by appending something like `>>/tmp/my.cron.log 2>&1` to the crontab command (log file and path arbitrary - just make sure it is somewhere your crontab user can write to)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.