I try to set up a cron job to execute a python test program (rm a file from folder) but it doesn't work. I've tried different things : - Run programm with script sh - Run action directly with command in crontab
When I launch test.sh from terminal, it works perfectly. When I launch rm file directly in crontab command it works too BUT nothing happens when the script sh is launched from crontab...
This is my cron tab :
*/5 * * * * run_auto_resp_ads.sh
37 14 * * * test.sh
18 14 * * * rm ~/Rendu/test_cron/lol.py
This is test.sh content :
#!/bin/sh rm ~/Rendu/test_cron/lol2.py
When I check my cron logs, task are running :
Mar 15 14:21:01 AcerA17 CROND[14905]: (mjz) CMD (test.sh)
Mar 15 14:18:01 AcerA17 CROND[12944]: (mjz) CMD (rm ~/Rendu/test_cron/lol.py)
I've also checked files rights.
Any ideas please ? Thx a lot :)