204
| SMSEagle NXS-9700
| User’s Manual
Database cleaning scripts
We have added some useful scripts which may be used to delete SMS messages from database through
Linux CLI.
Scripts are located at following directory:
/mnt/nand-user/scripts/
•
db_delete
–
script for deleting SMS from folders Inbox, SentItems older than provided date.
Usage:
./db_delete YYYYMMDDhhmm
•
db_delete_7days
–
script for deleting SMS from folders Inbox, Sentitems older than 7 days.
Usage:
./db_delete_7days
•
db_delete_allfolders
–
script for cleaning PostgreSQL database folders (Inbox, SentItems,
Outbox). Specially designed to run periodically through
cron.
Usage:
./db_delete_allfolders
•
db_delete_select -
script for deleting SMS from chosen databse folder (Inbox, Outbox,
SentItems, Trash). Usage:
./db_delete_select {inbox|outbox|sentitems|trash}
Adding script to system
cron
daemon
1) Create a file inside
/etc/cron.d/
directory with your desired name (eg.
pico db_cleaner
)
2) Example content of this file:
0 0 1 * * root /mnt/nand-user/scripts/db_delete_allfolders
This will run cleaning script every 1
st
day of month.
Содержание NXS-9700-3G
Страница 1: ...Rev 1 Rev 2 Rev 3 Rev 4 User s Manual SMSEAGLE NXS 9700 3G NXS 9700 4G...
Страница 9: ...9 SMSEagle NXS 9700 3G User s Manual GET READY TO START I...
Страница 21: ...21 SMSEagle NXS 9700 User s Manual USING OF SMSEAGLE II...
Страница 213: ...213 SMSEagle NXS 9700 User s Manual TROUBLESHOOTING I I I...
Страница 217: ...217 SMSEagle NXS 9700 User s Manual SERVICE REPAIR IV...
Страница 219: ...219 SMSEagle NXS 9700 User s Manual TECH SPECS SAFETY INFORMATION V...