#!/usr/local/bin/perl # # $Id$ # # sc: ser control; tool for maintaining ser's databases # # History: # -------- # 2003-04-07 initial attempt at file copy script # # To-DO: # ----- # - generalization for other than mysql databases # - front-end to updating administrative mysql password would # be a convenient thing to have # # quick and dirty script to copy 0.8.10 mysql location and subscription table # out and create insert statements for postgres new CVS version table # this script only copies 2 tables, location and subscriber. # you may need to modify the open(FD,"sdfdsf") line to suite your needs. # $q = <) { chop; ($user_id,$domain,$contact,$expires,$q,$callid,$cseq, $lastmodified)= split("\t"); $i = <) { chop; ( $phplib_id, $user_id, $password, $first_name, $last_name, $phone, $email_address, $datetime_created, $datetime_modified, $confirmation, $flag, $sendnotification, $greeting, $ha1, $domain, $ha1b, $perms, $allow_find, $timezone) = split("\t"); $i = <