I am using pytest to run my tests using python3 script like below:
pytest -s test_file.py | tee -a myoutput.log
It works. Now I would like to run this at a specific time everyday, I tried "crontab -e" from linux console but failed. I mean there is no log added to "myoutput.log" file. Can anyone please help? thanks!
42 00 * * * /usr/bin/pytest pytest -s /data/smc/test_file.py | tee -a myoutput.log