<div dir="ltr">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.<div><br></div><div>Here is my script:</div><div><br>
</div><div><div>#!/bin/bash</div><div>for line in $(cat routers.txt)</div><div>do</div><div>su -s /bin/bash -l rancid -c "/home/rancid/bin/clogin -x commands.cmds $line"</div><div>done</div></div><div><br></div>
<div>I've tried using the flat text command within "commands.cmds" to no avail and the -S option without success.</div><div><br></div><div>Does anyone have any input on how to make this work?</div><div><br></div>
<div>Thanks in advance,</div><div>G</div></div>