I have a start.sh bash script that runs CRON JOB on an ubuntu server
start.sh contains the following lines of code
start.sh path - /home/ubuntu/folder1/folder2/start.sh
#!/bin/bash crawlers(){ nohup scrapy crawl first & nohup scrapy crawl 2nd & wait $! nohup scrapy crawl 3rd & nohup scrapy crawl 4th & wait } cd /home/ubuntu/folder1/folder2/ PATH=$PATH:/usr/local/bin export PATH python init.py & wait $! crawlers python final.py
My problem is that if I run start.sh mine myself on the command line, it is displayed in the nohup.out file
but when it executes this bash file via cronjob (although the scripts work fine), it does not create nohup.out
how can i get the output of this cronjob in nohup.out ?
python bash cron ubuntu crontab
akhter wahab
source share