added fspget to setup.sh

This commit is contained in:
hsn 2003-12-03 17:59:29 +00:00
parent a6b9a614ed
commit 232e4f7a99
2 changed files with 21 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Version 2.8.1b18 - 25 Nov 24 2003 Version 2.8.1b18 - 25 Nov 24 2003
This is MINIMUM REQUIRED VERSION for applicatins which are using This is MINIMUM REQUIRED VERSION for applications which are using
javafsp library, only download machine atm. javafsp library will javafsp library, only download machine atm. Javafsp library will
be released shortly as separate package. be released shortly as separate package.
PROTOCOL updated. Made rules about breaking directory header on PROTOCOL updated. Made rules about breaking directory header on
packet boundary more clear. Previous text was from fspd code comment packet boundary more clear. Previous text was from fspd code comment

View File

@ -52,3 +52,22 @@ alias frmdir='set -f;_frmdir'
ftouch() { touch "$1"; fput "$1"; rm "$1" ;} ftouch() { touch "$1"; fput "$1"; rm "$1" ;}
_fcd() { export FSP_DIR=$(fcdcmd "$@"); set +f;} _fcd() { export FSP_DIR=$(fcdcmd "$@"); set +f;}
alias fcd='set -f;_fcd' alias fcd='set -f;_fcd'
####something like wget emulation####
_fspget() {
FSP_HOST=$(echo $1|awk -F"/" '{print $3}'|awk -F":" '{print $1}')
FSP_DIR=$(dirname $(echo $1|sed -e 's/fsp:\/\/.*:[0-9]*\//\//g'))
fsp_port=$(echo $1|awk -F"/" '{print $3}'|awk -F":" '{print $2}')
if [ -n $fsp_port ]
then
FSP_PORT=$fsp_port
fi
filename=$(basename $(echo $1|sed -e 's/fsp:\/\/.*:[0-9]*\//\//g'))
echo "Retrieving $filename from $FSP_HOST with FSPd running on port $FSP_PORT"
fver
fget $filename
echo "DONE"
}
alias fspget='set -f;_fspget'