Quote:
Originally Posted by ajkessel
Thanks! I am actually trying to do it all in the shell script. Here is the full context:
Code:
#!/bin/sh
qndb -t 60000 -s pfmDoneProcessing -m pfmRescanBooksFull
echo usb plug add >>/tmp/nickel-hardware-status
sleep 10
echo usb plug remove >>/tmp/nickel-hardware-status
The goal is to trigger KoboCloud to sync with the cloud, and then to trigger a USB connect/disconnect in order to get AutoShelf to organize the newly downloaded items into collections. When I run the first command from telnet, it waits until it's done. When I run it from the shell script triggered by cmd_spawn, it seems to skip instantly to the next step without waiting for the rescan to complete.
Am I doing it wrong?
|
That looks ok.
I suggest showing a couple of toasts to see what's going on. Eg:
Code:
qndb -m mwcToast 3000 "Faking USB plug"
qndb -m mwcToast 3000 "Faking USB unplug"