getatoppy - GET All TOPPY script for the TOPFIELD 5000 PVR

24 views
Skip to first unread message

Y P

unread,
Oct 9, 2009, 4:32:40 AM10/9/09
to Guppy-app Mailing List
Hi everyone,

see below (and in an attached tarball) the script I built yesterday
(08-10-2009):
I called it GETATOPPY because it's way of working is quite
simple: it simply gets *all* files contained into the DataFiles repository of
your Topfield TF5xxxPVR and copy them to the (current) directory where the
script is launched from.

In fact I did this due to the fact that:
1) it only requires puppy, not guppy
2) guppy itself wasn't available in a working version for my Ubuntu Hardy LTS
(only for the Jaunty),
+ guppy may have problems with the runned Python version on your system.

So to get rid of error messages and going on with transfering the Toppy
files, I wrote that script and post it now for you!

Feel free to make a Starter under your Gnome desktop for running getatoppy,
the only requirment is that you should have installed puppy before running
getatoppy.

Enjoy!

### <script> ###

#!/bin/bash
# getatoppy! - Get A(ll) Toppy (files)
#
# This script will get all files of your Topfield TF5000 PVR and put them
# in the current directory.
# You need to install puppy before running this script. Get puppy from here:
# http://sourceforge.net/projects/puppy
#
# by O. La Rosa - 08-10-2009 - blinuxman.net/blinux - Public
# with many thanks to J. Luyten
# and the excellent reference
# http://www.nslu2-linux.org/wiki/Puppy/PuppyUsage
#

# Running!
#
clear

echo "GETATOPPY !

GET A(ll) TOPPY files from Topfield's DataFiles dir to the current directory


IMPORTANT:

before continuing, be sure:
1) you have installed puppy on your system
2) you're running this script as su or root


GETATOPPY will copy now the content of Topfield's DataFiles dir
to the current dir:
* you're currently `whoami` and
* your present directory is `pwd`
* used puppy is `which puppy`


YOU MAY NOT BREAK THIS SCRIPT WHILE GETTING FILES OR THE CONNECTION WILL HANG!

"
read -p"Press now ENTER to proceed ... or CTRL+C to abort ... "

echo

puppy -c dir DataFiles

puppy -c dir DataFiles | awk '/^f/ { system(sprintf("puppy -c get \"DataFiles\\%s\" \"%s\"\n", substr($0, 49), substr($0,49))) }'

echo "
Finished !"

exit
#
# End of script.

### </script> ###

Y)ellow P)enguin :~$


getatoppy.tar.gz
Reply all
Reply to author
Forward
0 new messages