[rancid] "copy run start" from a script

Gregory Bruccoleri bruccoo at gmail.com
Fri Jan 10 16:26:49 UTC 2014


Hello all, I have the following script but want to ensure that when changes
are completed that the configuration changes are written to the startup
config.

Here is my script:

#!/bin/bash
for line in $(cat routers.txt)
do
su -s /bin/bash -l rancid -c "/home/rancid/bin/clogin -x commands.cmds
$line"
done

I've tried using the flat text command within "commands.cmds" to no avail
and the -S option without success.

Does anyone have any input on how to make this work?

Thanks in advance,
G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20140110/7ac471ff/attachment.html>


More information about the Rancid-discuss mailing list