I have seen many users shifting to fileserve, so why not writing this small tutorial
1. save the above script as fileserve.sh (for example)
2. move it to directory /bin
3. In terminal, do (i'll need superuser or root privileges)
4. Usage: fileserve.sh filename.ext
based on: http://www.wjunction.com/showthread.php?t=32893
PHP:
thisfile=${0//'./'/""}
if [ "$1" ]; then
curl -T "$1" ftp.fileserve.com --user Username:password
else
echo usage - $thisfile filename.ext
fi
1. save the above script as fileserve.sh (for example)
2. move it to directory /bin
3. In terminal, do (i'll need superuser or root privileges)
Code:
chmod +x /bin/fileserve.sh
4. Usage: fileserve.sh filename.ext
based on: http://www.wjunction.com/showthread.php?t=32893