Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:976cc68e1505ec1e2154 Secret
Created Apr 19, 2015

What would you like to do?
* * * * * /usr/bin/perl /var/www/example.com/public_html/CronTest.pl
#!/usr/bin/perl
use strict;
use warnings;
my $filename = 'report.txt';
open(my $fh, '>', $filename) or die "Could not open file '$filename' $!";
print $fh "My first report generated by perl\n";
close $fh;
print "done\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment