diff --git a/BuildCast.pl b/BuildCast.pl index 5e21dbe..abe3db8 100755 --- a/BuildCast.pl +++ b/BuildCast.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl use strict; use warnings; -use Time::localtime; +use POSIX qw(strftime); open(my $fh, ">>$ARGV[0].rss") or die "File:$!"; @@ -10,13 +10,8 @@ print $fh "\n"; print $fh "\t\n"; print $fh "\t\t$ARGV[0]\n"; print $fh "\t\t$ARGV[1]\n"; -print $fh "\t\t$ARGV[2]\n"; -print $fh "\t\t\n"; -my $monthday = localtime->mday(); -my $month = localtime->mon() + 1; -my $year = localtime->year() + 1900; -my $hour = localtime->hour(); -my $min = localtime->min(); -my $sec = localtime->sec(); -print $fh "\t\t$monthday $month $year $hour:$min:$sec \n"; -print $fh "\t\t$monthday $month $year $hour:$min:$sec \n"; +print $fh "\t\thttp://$ARGV[2]\n"; +print $fh "\t\t\n"; +my $todaydate = strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time())); +print $fh "\t\t$todaydate\n"; +print $fh "\t\t$todaydate\n"; diff --git a/FormCast.sh b/FormCast.sh index 7e718a0..d71f224 100755 --- a/FormCast.sh +++ b/FormCast.sh @@ -1,3 +1,3 @@ #!/bin/sh -./BuildCast.pl $@ -./AddItem.pl $1 `ls|tr '\n' ' '` +BuildCast.pl $@ +AddItem.pl $1 `ls|tr '\n' ' '`