File:  [mozdev] / booksync / www / booksync.sh
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Jun 13 16:54:39 2004 UTC (13 years, 6 months ago) by simon
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

#! /bin/sh

# define ftp connection
ftplogin=xxxxxx
ftppass=xxxxxx
ftpserver=www.xxxxxx.de
ftpstring=$ftplogin:$ftppass@$ftpserver

# location of the bookmarks
bookpath=/home/username/.mozilla/default/xxxxxx.slt
cd $bookpath
bookmarks=bookmarks.html

# download bookmarks from ftp
ftp -n $ftpserver <<END_SCRIPT
quote USER $ftplogin
quote PASS $ftppass
get $bookmarks
quit
END_SCRIPT

# check size of bookmarks
#booksize1=ls --block-size=1 -s bookmarks.html
#echo $booksize1

# execute mozilla
mozilla

# check size again
#booksize2='ls --block-size=1 -s bookmarks.html'
#echo $booksize2

# upload bookmarks to ftp after closing mozilla
ftp -n $ftpserver <<END_SCRIPT
quote USER $ftplogin
quote PASS $ftppass
rename bookmarks.html bookmarks_bak.html
put $bookmarks
quit
END_SCRIPT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>