I have created a shell script which i want to schedule using cronjob.
I used command crontab -e
and then i wrote * * * * * /xxxx/xxx/workflow.sh
After that i typed :wq!
. I got a message saying crontab: installing new crontab
but nothing happens after that. I tried running my workflow.sh separately and it is working fine. Below is my workflow.sh.
#!/bin/bash
echo "script started"
python /xxxx/xxx/move_files.py
echo "Training Started"
for N in {1..9}; do /xxxx/xxx/openface-master/util/align-dlib.py /xxxx/xxx/openface-master/training_dataset align outerEyesAndNose /xxxx/xxx/openface-master/aligned_data --size 96 & done
/xxxx/xxx/openface-master/batch-represent/main.lua -outDir /xxxx/xxx/openface-master/feature -data /xxxx/xxx/openface-master/aligned_data
/xxxx/xxx/openface-master/demos/classifier_original.py train feature
echo "Model running"
/xxxx/xxx/openface-master/demos/classifier_updated.py
Please help. I tried removing the file.lock as per suggestion but still it is not working.