Need Assistance - Linux Terminal (Upload file to FTP site) for script
Go to solution
Solved by Joshndroid,
The FTP server has to be running /something/ as the operating system. You won't be able to use rsync with your ftp account, but if you have an SSH account, you can use rsync.
sorry for some reason i never got the notification for the reply in the thread even though i follow it, weird :blink:
anyway. I managed to get what i wanted using curl; it is however a bit weird ill post it
I can't have any other access than FTP due to the hosting site, so had to work with what i had
NOTE - user and passwrd are not variables i obviously aint going to share them or my server lol
#!/bin/bash cd /media/joshndroid/ubuntufiles/android/Temasek Roms/Untested/ LT03WIFICMVERSION=$(grep ro.cm.version ~/temasource/out/target/product/lt03wifi/system/build.prop | cut -d= -f2) &<03WIFITMVERSION=$(grep temasek_version_default ~/temasource/packages/apps/Settings/res/values/cr_strings.xml | cut -dV -f2 | cut -d"<" -f1) &<03WIFIBUILDFILE=cm-${LT03WIFICMVERSION}-${LT03WIFITMVERSION} &&curl -T "$LT03WIFIBUILDFILE.zip" -u [USER]:[PSWRD] ftp://site.com/Temasek\ Roms/Untested/"$LT03WIFIBUILDFILE.zip"
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now