View Full Version : [ubuntu] Errant cron results

February 17th, 2009, 01:10 AM

HISTORY: I had my crontab executing fine. The scripts it called out worked fine. Due to my not being able to install AutoCAD using WINE (which works fine on my laptop) I decided to start from scratch and rebuild my desktop.

When I execute these scripts in a shell they work just fine and produce the desired results. When my crontab executes the scripts the scripts run but produce one empty tar ball and one partial tar ball. Obviously not what I want as I want a backup.

File permissions on the scripts are set to execute.

My ubuntu release is:

Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid

My crontab looks like this:

59 23 2-31 * * /home/pjpalmq/backup/backup.scr
59 23 1 * * /home/pjpalmq/backup/bigbackup.scr

The script (backup.scr) looks like this:

mkdir /Backup/Linux/Nightly/"$now"
touch /Backup/Linux/Nightly/"$now"/"$now"
tar -cvf /Backup/Linux/Nightly/"$now"/My\ Documents.tar /home/pjpalmq/My\ Documents
tar -cvf /Backup/Linux/Nightly/"$now"/Mail.tar /Mail
touch /Backup/Linux/Nightly/"$now"/"$end"

Thanks so much for any ideas.