Can anyone tell me what I am doing wrong??
You're not checking the success status of your system calls:
use strict; use warnings; use Fatal qw(:void open close print); use CGI; use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; open(OUT, ">>/home/jma/Documents/cron-job") or die "Can't open file fo +r writing: $!"; print OUT "blah\n"; close OUT;
In reply to Re: cgi script write to crontab
by moritz
in thread how to avoid web server from getting hacked
by Niner710
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |