Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any way to use wget to download a file from my Ubuntu One Account/Online Storage?

say I try wget http://ubuntuone.com/p/14bm/ it should download the file called "wget-u1-test-doc.txt" but all I get is a file index.html.

for now I'm using a dropbox account to do this job instead of ubuntu one.

I'm playing around with some post install scripts {I'm trying to teach myself some things} on ubuntu in virtualbox oneiric and natty so I may install ubuntu then after a while do a clean install and start from fresh. the scripts mainly just download and install customized .desktop files for the unity launcher and put them in the right places. this is so I don't have to keep doing it manually every time. and I find it a fun way to learn not only scripting but ubuntu as well.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Use wget's --content-disposition option:

$ wget -nv --content-disposition http://ubuntuone.com/p/14bm/
2011-07-15 17:31:47 URL:http://ubuntuone.com/p/14bm/ [143/143] -> "wget-u1-test-doc.txt" [1]
share|improve this answer
    
Thank you so much! I still have so much to learn :-) just when I think I am slowly getting a grip on things, something new pops up. thanks again –  Roo79x Jul 16 '11 at 1:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.