Can I use a link to a file to set a crontab job on it?
I tried the following:
$ crontab -e
$ 10***** /path-to-link/
Can I use a link to a file to set a crontab job on it?
I tried the following:
$ crontab -e
$ 10***** /path-to-link/
*
Adding spaces and removing the extra
*
should work:More info - how-do I add jobs to cron under linux
Yes you can use a link to a file in crontabs - with the same conditions as always e.g.
cron
In fact, many common executable commands are symbolic links - even
/bin/sh
itself:So for example
results in