Forum Discussion
Findus
Altostratus
Oct 05, 2015iCall / Automatic Backup Script / How to delete old backup files within iCall script?
Hi all!
I am using an iCall script to automate the configuration backups of BIGIPs. The script runs fine, except for the command to delete the old backup file(s). The exec rm command does not work ...
Ivan_129704
Nimbostratus
Aug 30, 2018Hi,
Although spent time from your question, I am in the same situation.
The problem is because in the tclsh language you can not use the wilcard *
Try replacing the line
exec rm -f /shared/tmp/f5backup*
By
exec sh -c "rm -f /shared/tmp/f5backup*"
Luck
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
