I set up a Perl script to be run as a nightly cron job at 3:23 AM with the line
23 03 * * * * cd /backup1/backup_adm/; perl backup.pl
in my crontab file. The script creates a tar file in an NFS-mounted directory. Every night I receive an email saying:
/bin/sh: fg: no job control
Can't open perl script "backup.pl": No such file or directory
but I can successfully run the same series of commands manually, and backup.pl is definitely in /backup1/backup_adm. A monthly cron job belonging to the same user that FTPs data to a remote site also returns the same "no job control" error, but without the "no such file or directory" error.
How do I make these cron jobs run?