[rancid] problem with rancid crontab

Alex DEKKER 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:
>
> /root
>
> 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.

alexd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20171003/b3214341/attachment.html>


More information about the Rancid-discuss mailing list