[freeside-commits] branch master updated. bd86f39993db7511cb71a66c11ed56f5fa48be28
Ivan
ivan at 420.am
Tue May 7 18:28:41 PDT 2013
The branch, master has been updated
via bd86f39993db7511cb71a66c11ed56f5fa48be28 (commit)
from 85dc9f5c03d159e88d2af277749ec2c2707de3a1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bd86f39993db7511cb71a66c11ed56f5fa48be28
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue May 7 18:28:37 2013 -0700
add -s flag to skip CDR files that error out, RT#20763
diff --git a/FS/bin/freeside-cdr-sftp_and_import b/FS/bin/freeside-cdr-sftp_and_import
index c37ff11..9aacd67 100755
--- a/FS/bin/freeside-cdr-sftp_and_import
+++ b/FS/bin/freeside-cdr-sftp_and_import
@@ -12,8 +12,8 @@ use FS::cdr;
# parse command line
###
-use vars qw( $opt_m $opt_p $opt_r $opt_e $opt_d $opt_v $opt_P $opt_a $opt_c $opt_g );
-getopts('c:m:p:r:e:d:v:P:ag');
+use vars qw( $opt_m $opt_p $opt_r $opt_e $opt_d $opt_v $opt_P $opt_a $opt_c $opt_g $opt_s );
+getopts('c:m:p:r:e:d:v:P:ags');
$opt_e ||= 'csv';
#$opt_e = ".$opt_e" unless $opt_e =~ /^\./;
@@ -192,7 +192,7 @@ freeside-cdr-sftp_and_import - Download CDR files from a remote server via SFTP
cdr.sftp_and_import [ -m method ] [ -p prefix ] [ -e extension ]
[ -r remotefolder ] [ -d donefolder ] [ -v level ] [ -P port ]
- [ -a ] [ -c cdrtypenum ] user format [sftpuser@]servername
+ [ -a ] [ -g ] [ -s ] [ -c cdrtypenum ] user format [sftpuser@]servername
=head1 DESCRIPTION
@@ -220,6 +220,8 @@ or FTP and then import them into the database.
-g: File is gzipped
+-s: Warn and skip files which could not be imported rather than abort
+
user: freeside username
format: CDR format name
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-cdr-sftp_and_import | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list