I have a problem with crontab.
My file sondeCpu.py
has a script to return me the cpu-load percentage. I want the result every minute and I want the output to go to my file Sample.txt
01 * * * * python3 /home/z/sondeCpu.py >> /home/z/Sample.txt 2&1
The script in sondeCpu.py work well alone in the terminal but in crontab the output does not want to go in Sample.txt.
I need some help Thanks you !