View Single Post
Old 07-26-2024, 09:25 AM   #3
nickelclone
Junior Member
nickelclone began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: Kobo Clara HD
Quote:
Originally Posted by qkqw View Post
As you spawn a command, it will immediately return and execute the rescan.
That’s what I thought. But as I mentioned, cmd_output isn't working either. I did see another post on these forums suggesting cmd_spawn should work with chaining but I lost the link.

Quote:
Originally Posted by qkqw View Post
Also, see here for a working rclone setup: https://www.mobileread.com/forums/sh...9&postcount=11
Oh, I have a working rclone setup, and that post was a major help in getting to that state. Thank you! If you squint, you'll notice my script is inspired by yours. I also have a suggestion for the bit on waiting for a connection, which I also modified to be (for me) shorter and simpler:

Code:
retries=60

while [ "$retries" -gt 0 ]
do
  ping -c 1 -w 3 '1.1.1.1' && break

  sleep 1
  retries="$((retries - 1))"
done
Thank you again.
nickelclone is offline   Reply With Quote