Search code examples
pythoncronnose

Crontab- run nosetests from a specific path


Hello I am trying to CD into a specific path and run my nosetests through crontab. I have tried a bunch of stuff and none of it has worked yet:

MAILTO = [email protected]
* * * * * . /Users/pamili/resources/tests ; nosetests

MAILTO = [email protected]
Path = /Users/pamili/resources/test
* * * * * Path/nosetests

MAILTO = [email protected]
Path = /Users/pamili/resources/test
* * * * * Path =. nosetests

None of it seems to work. Any suggestions are really helpful! Thanks


Solution

  • Try: MAILTO = [email protected]

    * * * * * cd /Users/pamili/resources/test && /dir/of/nosetests