Skip to content

Commit

Permalink
add cron cmd for script
Browse files Browse the repository at this point in the history
  • Loading branch information
jivoi committed Apr 1, 2015
1 parent dac255e commit 8ab9ded
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion check_domain.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/perl

#add to cron
#/root/bin/checkdomain/checkdomain.pl < /root/bin/checkdomain/domains.txt 2>&1

# added cache whois
use Net::Domain::ExpireDate;
use Time::Piece;
Expand All @@ -7,7 +11,7 @@
my $mailto = '[email protected]';
my $debug = 1;
my $now = localtime;
my $mail = 'mail -s "Domain Expiration Status" '.$mailto;
my $mail = 'mail -Es "Domain Expiration Status" '.$mailto;
#my $mail = 'cat';
my $warntime = 3*30*24*60*60; # 3 months
#my $warntime = 3*30*24*60;
Expand Down

0 comments on commit 8ab9ded

Please sign in to comment.