javier_ccs
01-10-2006, 03:46 PM
hello,
i just created a routine that logs into a firewall and makes a backup of its configurations on expect language, then i add it to cron jobs in order to be executed automatically, but i have a minuscular problem.
the routine creates a text file in wich it stores the configuration of the firewall
Code:
#expect javier.exp > backup.txt
now the problem is that each time this routine is executed (15 days) it stores the configuration in the same file, deleting the old content and i want to keep all the older configuration files.
how can i store the configuration on a file with the name of the day its executed?
i just created a routine that logs into a firewall and makes a backup of its configurations on expect language, then i add it to cron jobs in order to be executed automatically, but i have a minuscular problem.
the routine creates a text file in wich it stores the configuration of the firewall
Code:
#expect javier.exp > backup.txt
now the problem is that each time this routine is executed (15 days) it stores the configuration in the same file, deleting the old content and i want to keep all the older configuration files.
how can i store the configuration on a file with the name of the day its executed?