| Server IP : 172.67.134.114 / Your IP : 162.159.115.41 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/cron/ |
Upload File : |
#!/usr/bin/perl
# cron_editor.pl
# Called by crontab -e to edit an users cron table..
sleep(1); # This is needed because the stupid crontab -e command
# checks the mtime before and after editing, and if they are
# the same it assumes no change has been made!!
open(SRC, "<".$ENV{"CRON_EDITOR_COPY"});
open(DST, ">".$ARGV[0]) || die "Failed to open $ARGV[0] : $!";
while(<SRC>) {
if (!/^#.*DO NOT EDIT/i && !/^#.*installed on/i &&
!/^#.*Cron version/i) {
(print DST $_) || die "Failed to write to $ARGV[0] : $!";
}
}
close(SRC);
close(DST) || die "Failed to write to $ARGV[0] : $!";