[rancid] problem with rancid crontab
rancid at ale.cx
Tue Oct 3 14:52:30 UTC 2017
On 03/10/17 15:37, Vacheslav wrote:
> Well it didn’t run because when I su rancid and execute:
> /root $ /tmp/test.sh
> bash: /tmp/test.sh: /bin/sh^M: bad interpreter: No such file or directory
> running: sh /tmp/test.sh
> produces a log file with the following content:
> How to fix the script?
If there really is a ^M on the first line of the script then that
suggests it was created with "DOS" line endings. What are you using to
edit files? I can imagine that unexpected DOS line endings will cause
the various components of RANCID to fail in unexpected ways.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rancid-discuss