On 2 December 2010 11:14, Barry Drake <[email protected]> wrote:
> Hi there ........
>
> I wrote a little script for doing an rsync to a second hard drive.  It
> goes like this:
> #/bin/bash
> rsync -r /home/barry /media/hda1/backups/barry_pc | tee >(zenity
> --progress --pulsate --text="Backing up files ....") >backup_log.txt
> killall zenity
> zenity --info --text="Backup completed sucessfully"
>
> This works fine if I run it from a terminal, but if I try to run it from
> a desktop launcher or (preferred) run it as a startup program, it fails
> to do anything - doesn't launch at all.  If the script is altered to:
>
> #/bin/bash
> rsync -r /home/barry /media/hda1/backups/barry_pc
> zenity --info --text="Backup completed sucessfully"
>
> It runs just the way I expect it to.  The thing is, I'd quite like a
> notification to remind me that a backup is running automatically.  Any
> thoughts on this?

I don't know whether it is the whole problem, probably not, but I
think you should provide a full path to backup_log.txt to be sure of
where it is writing it.  Is it possible that it is running but the log
is going to the wrong place?

Colin

-- 
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to