Hi,
how could we run a script from a certain directory?
Its a cron job need to be run by userA
What was done
crontab:
Code:
15 * * * * userA /etc/cron.daily/script.sh
scrpt.sh:
Code:
cd /desired-dir
command one
command two
issue is it does cd and then run rest of the commands from root(I assume)
Any Ideas?