-
-
Save anonymous/976cc68e1505ec1e2154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* * * * * /usr/bin/perl /var/www/example.com/public_html/CronTest.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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