Cisco Router / Switch, update and backup.
This Expect Script is an example of using TFTP to update an Access-List (ACL10), saving the configuration change and then backing up the configuration to a remote TFTP server.
The script determines the local host name from the hostname of the device.