Linux Mint 16 (Petra): Zenity scripts that worked with linux Mint 13 (Maya) don't longer work with Anachron
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
community.linuxmint.com |
New
|
Undecided
|
Unassigned |
Bug Description
Since the upgrade to Linux Mint 16 my backup scripts I put into /etc/cron.daily don't get executed anymore (Anachron). The same script worked perfectly with Mint 13. Chmod has been set to 755 as last time. Script includes Zenity command. Thus it is important to set the display variable. But also this has been done. This is the script:
#######
#! /bin/bash
# use this to backup to internal backup drive
DISPLAY=:0 /usr/bin/zenity --question --title="Backup" --text="Last backup older than 1 day. Start backup now?"
#$? returns result 0 means user press yes, 1 means cancel.
RESULT=$?
if [ $RESULT -eq 0 ]; then
DISPLAY=:0 rsync -auv --log-file=
#zenity --text-info --title="Progress of your Backup" --width 530
DISPLAY=:0 /usr/bin/zenity --info --title="Backup complete" --text="The backup to the internal hard drive is now complete."
fi
#######
Thus I put a more simple script into /etc/cron.daily (without GUI) to see if it was executed. Also this script is NOT executed by Anachron:
#######
#! /bin/bash
Date=`date +"%Y%m%d"`
touch /media/
touch /home/user/
#######
I have also tried the following:
run-parts --report /etc/cron.daily
sudo run-parts -v /etc/cron.daily
This works without issues!
I have also tried this: https:/
without success.