Skip to content

Instantly share code, notes, and snippets.

Created April 19, 2015 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/976cc68e1505ec1e2154 to your computer and use it in GitHub Desktop.
Save anonymous/976cc68e1505ec1e2154 to your computer and use it in GitHub Desktop.
* * * * * /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