Gregory Bruccoleri
2014-01-10 16:26:49 UTC
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
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