View Single Post
Posts: 63 | Thanked: 75 times | Joined on Jul 2012 @ Austria
#12
First of all, thanks for the script. After using it for some time I wanted to have easy access to the log, as well as a way of knowing when a sync is done. This is how I do it:

1) Redirect all output/logging to a log file (.txt extension)
2) After removing the lock file, open the txt-file via xdg-open (launches the document viewer)

Code:
G_LOGFILE="/home/user/logs/cloudsync.txt"

echo "logger text and output.." >> $G_LOGFILE

# after removing the lock file
xdg-open /home/user/logs/cloudsync.txt
 

The Following 3 Users Say Thank You to N9uwu For This Useful Post: