I add this line to crontab -e
* * * * * /root/Desktop/New.py
The New.py code is simple creating a text file here is the code of it
#!/usr/bin/python
f= open("test.txt",'w')
f.write("test")
f.close()
when I test executing the code using the shell it works correctly and when I tested the Cron using echo to a text file the Cron also works correctly, and I set the python file permission to executable, But still it doesn't work