Hi,
I'd like to download an entire folder structure to pb903 using wget.
I tried the following on my local machine - it worked flawless
wget -r --ftp-user='user' --ftp-password='*******'
ftp://192.168.1.109/../user/ereader/
Mainly based on thread
https://www.mobileread.com/forums/showthread.php?t=115657&highlight=wget112&page=7
I hoped to engineer my script, like this:
Code:
#!/bin/sh
#
# License: GPLv2
# Author: review (https://www.mobileread.com/forums/member.php?u=88891)
# Modified by mephi
#Disable powersave
echo test > /sys/power/wake_lock
#Activate powersave again at any kind of exit from the script
trap 'echo test > /sys/power/wake_unlock' EXIT
# connect only to network if we're not already connected
mypid="$(ps |grep netagent|grep connect)"
if [[ "$mypid" == "" ]]; then
/ebrmain/bin/netagent connect
fi
mkdir devgettest
cd /mnt/ext2/devgettest
wget -r --ftp-user='user' --ftp-password='*******' ftp://192.168.1.109/../user/ereader/
# disconnect only from network if we were not connected when script started.
if [[ "$mypid" == "" ]]; then
/ebrmain/bin/netagent disconnect
fi
It's not working. Anyone having an idea why?