Run a python script from with arguments (from argparse in python) from crontab
问题 I have a python script which uses argparse and accepts a few arguments and run it from cron example: python test.py --a apple --b ball This needs to be scheduled from crontab .I can run it manually but cron fails to recognise the arguments .Please suggest solution. The cron job line looks like : * * * * * /pathtopython/python test.py --a apple --b ball > /tmp/abc.out 2>&1 回答1: crontest.py file code : import argparse parser = argparse.ArgumentParser() parser.add_argument('--a', help="First