From 68bbe0d5964880c617be622c7d32dad633d515a7 Mon Sep 17 00:00:00 2001 From: "J. David Bavousett" Date: Wed, 14 Oct 2009 08:19:37 -0400 Subject: [PATCH] Modified to use dirspec only This commit modifies overdue_notices so that the -html parameter only requires a directory specification. --- misc/cronjobs/overdue_notices.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 75e8b519a1..4b959db187 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -343,7 +343,8 @@ if ( defined $htmlfilename ) { if ( $htmlfilename eq '' ) { $html_fh = *STDOUT; } else { - open $html_fh, ">", $htmlfilename or die "unable to open $htmlfilename: $!"; + my $today = C4::Dates->new(); + open $html_fh, ">",File::Spec->catdir ($htmlfilename,"notices-".$today->output('iso').".html"); } print $html_fh "\n"; -- 2.39.5