| * * * * * /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