I have a quick question. I need to add a cron to my debain crontab using an automated shell script and I need the cron to do two things:
crontab -l | { /bin/cat; /bin/echo "* 3 * * * cd /etc/application"; } | crontab -
How do I get it to also run the scrapy crawl command?
You can have multiple commands in a single crontab line. Just separate them with semicolons:
crontab -l | { /bin/cat; /bin/echo "* 3 * * * cd /etc/application ; scrapy crawl"; } | crontab -
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With