in reply to Can I run gzip in a Perl program running from CRON?
First, make sure $backupDir is an absolute path to your backup directory. If that doesn't clear up the problem, we need more information. The text "will not execute" doesn't really help. Do you have an error message?