On FreeBSD, which you've mentioned is the basis for JUNOS, the crontab file executes with /bin/sh by default, rather than /bin/csh. I don't know if you've got access to a crontab on JUNOS but watch out for the difference in shells if you do.
BTW, the encap file does not change much. On average, one line in it will change per hour, as a gateway with a dynamic address updates its address (and it's often the same gateway flipping between two or three addresses), but gateways come and go at a much lower rate -- I'd guess one or two a week. So you'd be pretty safe just FTPing and processing a new encap file perhaps once a day if it winds up being a chore. - Brian
On Fri, May 19, 2017 at 11:21:07PM -0400, Craig Brauckmiller wrote:
I am very close to having a bash shell script that will generate the needed JUNOS commands. I can only hope that it works on JUNOS...doubtful since JUNOS uses the CSH shell. :( But If I can get the logic worked out in bash, it should convert easy enough.