Documente Academic
Documente Profesional
Documente Cultură
sh)
Purpose
This shell script replaces ftp_vox1.sh. It archives the vox files to a VAS, then updates the
rec_playint table on the host and sets the f_path and device_name to the new location. It
also has a cleanup routine that deletes the vox files on the VAS depending on number of
days old that was set. The shell should be setup in cron to run @ 12:30am daily.
Process Flow
The script will first update rec_playint.filler1 with the actual vox filename
(office_no+file_num+appl) where filler1 is blank. It will then do the clean-up routine
(vox files over $daysdel) and delete the vox files on the VAS to clear up space. On each
vox file deletion, it updates rec_playint.f_path=’deleted’ on the host task database.
Then it generates a list of vox files and starts FTP’ing each of files to the VAS. After a
file gets FTPed, it will get the byte size on the VAS and compare it with the original vox
file, if the size match it can then permanently delete the file off the dialer. After deleting
the file, it will update rec_playint table on the host and set the f_path and device_name
to the VAS folder and hostname.
Location
Server : linuxprod
Environnent : dcm4.3.7
Shell script : vas_voxmv.sh