View Single Post
Old 07-31-2024, 10:18 AM   #21
sheepdog
Member
sheepdog began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2024
Device: calibre
Yes, corrected script follows:
Code:
#!/bin/bash

dropbox start
dropbox status
echo -n "SYNCING CALIBRE"
wait_time=15
i=0
while [ $i -le $wait_time ]; do
	sleep 1
	echo -n .
	((i++))
done
dropbox stop
echo -n "STOPPING DROPBOX"
i=0
while [ $i -le $wait_time ]; do
	sleep 1
	echo -n .
	((i++))
done
calibre 
echo - n "SYNCING DROPBOX"
i=0
while [ $i -le $wait_time ]; do
	sleep 1
	echo -n .
	((i++))
done
dropbox start
dropbox status
i=0
while [ $i -le $wait_time ]; do
	sleep 1
	echo -n .
	((i++))
done
dropbox stop
The Dropbox does not appear to have a method for querying the sync state. So the script uses an arbitrary wait time.

Last edited by sheepdog; 07-31-2024 at 10:21 AM. Reason: Adding information.
sheepdog is offline   Reply With Quote