Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I an aware of the /proc security issue of writing password in the command-line, 
but I don't quite see how to add support for a config file seamlessly at this 
point. Besides, only the email and password would be in the config file...

Maybe we could take the opportunity to rethink the arguments: while it's UNIX 
orthodoxy to use compulsory info as arguments (and not options), here we have 
so many that it's not a very clear command to write. What about:

$ youtube-upload --email EMAIL --password PASSWORD [OTHER OPTIONS] FILE

I know, that's the opposite you asked for, there's more to write. But all of 
this would allow to add the option --password-file to get the password from a 
file safely.

Ideas?

I've got to admit I don't like the idea of using configuration files, simple 
apps should be straightforward and direct. Automation and shorter commands can 
always be achieved through aliasing or shell wrappers.

Original comment by tokland on 20 Jun 2010 at 8:18

from youtube-upload.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I see, then the simplest solution for security aspect of that problem would be 
with raw_input("Password:"), example of usage:

youtube-upload [email protected] stdin anne_sophie_mutter.flv \
  "A.S. Mutter" "A.S. Mutter plays Beethoven" Music "mutter, beethoven"
Password: *******
www.youtube.com/watch?v=pxzZ-fYjeYs

or support for password file:

cat passwordfile | youtube-upload [email protected] stdin 
anne_sophie_mutter.flv \
  "A.S. Mutter" "A.S. Mutter plays Beethoven" Music "mutter, beethoven"
Password:
www.youtube.com/watch?v=pxzZ-fYjeYs

Implementation difficulty: 2 lines of code.

P.S. Excuse my bad English.

Original comment by [email protected] on 20 Jun 2010 at 8:31

from youtube-upload.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Well, yeah, for now this is fairly simple to implement. Only that I'd prefer 
the more standard "-" to refer to stdin.

r58

Original comment by tokland on 20 Jun 2010 at 9:14

  • Changed state: Fixed

from youtube-upload.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024

Original comment by tokland on 13 May 2014 at 2:55

from youtube-upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.