I have a script that runs make fine from terminal but throws error when I am running through Cronjob.
The script in ypxfr.sc:
#!/bin/sh make -f /var/yp/Makefile -C sc auto.nfs.sc.home 2>&1 | sed -e 's/^/\t/g'
The crontab -l:
SHELL=/bin/bash 59 * * * * /var/yp/ypxfr.sc >> /var/log/ypxfr.sc.out 2>&1
The error that I get in ypxfr.sc.out is:
make: *** sc: No such file or directory. Stop.