[linux] Uploading to FileServe via curl

Status
Not open for further replies.

Snell

Active Member
625
2009
18
240
I have seen many users shifting to fileserve, so why not writing this small tutorial


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
 
Status
Not open for further replies.
Back
Top