my cronjob look like this:
0 3 * * 0-6 somedir/promotionscript
But promotionscript is actually calling another file "config" located in the parent folder of somedir.
#promotionscript #!/bin/csh source ../config
But I got config: No such file or directory. So I suppose that cronjob is not running at somedir so it does not know somedir once start to run promotionscript. How to make cronjob locate config in the parent folder.
Note that one possible solution is that I can add full path to config:
But is there a way for cronjob to recognize the full path directly?